File tree Expand file tree Collapse file tree 7 files changed +16
-34
lines changed Expand file tree Collapse file tree 7 files changed +16
-34
lines changed Original file line number Diff line number Diff line change @@ -4,11 +4,11 @@ These are the tasks typically needed to create an official NHibernate release.
4
4
that is about to happen (as these will show in the milestone).
5
5
6
6
* Create a draft release in Github with GitReleaseManager. If you have used
7
- the NHibernate build menu, it should be available in Tools\gitreleasemanage. x.x.x\
7
+ the NHibernate build menu, it should be available in %userprofile%\.nuget\packages\gitreleasemanager\ x.x.x\
8
8
(change x.x.x by its current version in tools).
9
9
By example:
10
10
11
- Tools\gitreleasemanager. 0.7.0\tools\GitReleaseManager.exe create -o nhibernate -r nhibernate-core -m 5.1 -u username -p password
11
+ %userprofile%\.nuget\packages\gitreleasemanager\ 0.7.0\tools\GitReleaseManager.exe create -o nhibernate -r nhibernate-core -m 5.1 -u username -p password
12
12
13
13
(Adjust the -m milestone parameter above, and add "-c branchname" if
14
14
releasing another branch than master)
Original file line number Diff line number Diff line change 1
1
@ echo off
2
2
pushd %~dp0
3
3
4
+ for /f " tokens=* USEBACKQ delims= " %%i in (`findstr /c:" NUnit.ConsoleRunner" " Tools\packages.csproj" `) do set NUNIT_VERSION = %%i
5
+ set NUNIT_VERSION = %NUNIT_VERSION:~57 %
6
+ set NUNIT_VERSION = %NUNIT_VERSION:" /> =%
7
+
4
8
set NANT = " %~dp0 Tools\nant\bin\NAnt.exe" -t:net-4.0
5
9
set BUILD_TOOL_PATH = %~dp0 Tools\BuildTool\bin\BuildTool.dll
6
10
set BUILDTOOL = dotnet %BUILD_TOOL_PATH%
7
11
set AVAILABLE_CONFIGURATIONS = %~dp0 available-test-configurations
8
12
set CURRENT_CONFIGURATION = %~dp0 current-test-configuration
9
- set NUNIT = " %~dp0 Tools\ NUnit.ConsoleRunner.3.7.0 \tools\nunit3-console.exe"
13
+ set NUNIT = " %userprofile% \.nuget\packages\ NUnit.ConsoleRunner\ %NUNIT_VERSION% \tools\nunit3-console.exe"
10
14
11
15
if not exist %BUILD_TOOL_PATH% (
12
16
dotnet build %~dp0 Tools\BuildTool\BuildTool.sln -c Release -o bin
@@ -182,6 +186,7 @@ SET NUNITPLATFORM=
182
186
goto test-run
183
187
184
188
:test-run
189
+ %NANT% common.tools-restore
185
190
start " nunit3-console" cmd /K %NUNIT% %NUNITPLATFORM% --agents=1 --process=separate NHibernate.nunit
186
191
goto main-menu
187
192
Original file line number Diff line number Diff line change 1
1
@ echo off
2
2
3
- for /f " usebackq tokens=*" %%i in (`%~dp0 \vswhere. 2.1.4\tools\vswhere -latest -products * -requires Microsoft.Component.MSBuild -property installationPath`) do (
3
+ for /f " usebackq tokens=*" %%i in (`%userprofile% \.nuget\pacakges\vswhere2\ 2.1.4\tools\vswhere -latest -products * -requires Microsoft.Component.MSBuild -property installationPath`) do (
4
4
set InstallDir = %%i
5
5
)
6
6
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 12
12
13
13
<ItemGroup >
14
14
<PackageReference Include =" CSharpAsyncGenerator.CommandLine" Version =" 0.16.2" />
15
+ <PackageReference Include =" vswhere" Version =" 2.1.4" />
16
+ <PackageReference Include =" NUnit.ConsoleRunner" Version =" 3.10.0" />
17
+ <PackageReference Include =" GitReleaseManager" Version =" 0.7.0" />
15
18
</ItemGroup >
16
19
17
20
</Project >
Original file line number Diff line number Diff line change 39
39
/>
40
40
</target >
41
41
42
- <target name =" common.nuget-restore" depends =" common.init common.download-nuget" >
43
- <exec basedir =" ${tools.dir}" workingdir =" ${root.dir}/Tools" program =" NuGet.exe" >
44
- <arg value =" install" />
45
- </exec >
46
- </target >
47
-
48
42
<target name =" common.tools-restore" depends =" common.init" >
49
43
<exec workingdir =" ${root.dir}/Tools" program =" dotnet" verbose =" true" >
50
44
<arg line =" restore ./packages.csproj" />
Original file line number Diff line number Diff line change 46
46
</exec >
47
47
</target >
48
48
49
- <target name =" solution-restore" depends =" common.nuget -restore" >
49
+ <target name =" solution-restore" depends =" common.tools -restore" >
50
50
<exec program =" dotnet" verbose =" true" >
51
51
<arg value =" msbuild" />
52
52
<arg value =" /t:Restore" />
62
62
<property name =" tool-path" value =" ${environment::get-folder-path('UserProfile')}/.nuget/packages/${tool-id}/${tool-version}/" />
63
63
</target >
64
64
65
- <target name =" get-nuget-package-path" depends =" common.nuget-restore" >
66
- <xmlpeek
67
- file=" ${tools.dir}/packages.config"
68
- xpath=" /packages/package[@id = '${nuget-package-id}']/@version"
69
- property=" nuget-package-version" />
70
- <property name =" nuget-package-path" value =" ${tools.dir}/${nuget-package-id}.${nuget-package-version}/" />
71
- </target >
72
-
73
65
<target name =" find-async-generator-console" >
74
66
<property name =" tool-id" value =" CSharpAsyncGenerator.CommandLine" />
75
67
<call target =" get-tool-path" />
158
150
</target >
159
151
160
152
<target name =" find-nunit" >
161
- <property name =" nuget-package -id" value =" NUnit.ConsoleRunner" />
162
- <call target =" get-nuget-package -path" />
163
- <property name =" nunit-console" value =" ${nuget-package -path}/tools/nunit3-console.exe" />
153
+ <property name =" tool -id" value =" NUnit.ConsoleRunner" />
154
+ <call target =" get-tool -path" />
155
+ <property name =" nunit-console" value =" ${tool -path}/tools/nunit3-console.exe" />
164
156
</target >
165
157
166
158
<target name =" run-tests" depends =" find-nunit" description =" Run NUnit tests" >
You can’t perform that action at this time.
0 commit comments