File tree 6 files changed +25
-39
lines changed
6 files changed +25
-39
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "version" : 1 ,
3
+ "isRoot" : true ,
4
+ "tools" : {
5
+ "csharpasyncgenerator.tool" : {
6
+ "version" : " 0.19.1" ,
7
+ "commands" : [
8
+ " async-generator"
9
+ ]
10
+ }
11
+ }
12
+ }
Original file line number Diff line number Diff line change @@ -178,36 +178,15 @@ testRun(){
178
178
}
179
179
180
180
generateAsync (){
181
- dotnet restore ./src/NHibernate.sln
182
-
183
- getAsyncGeneratorPath
184
181
cd src
185
- dotnet ../" $async_generator_path "
182
+ dotnet tool restore
183
+ dotnet restore ./NHibernate.sln
184
+ dotnet async-generator
186
185
cd ..
187
186
188
187
mainMenu
189
188
}
190
189
191
- getAsyncGeneratorPath (){
192
- if [ " $async_generator_path " ]
193
- then
194
- return
195
- fi
196
-
197
- cd Tools
198
-
199
- async_generator_version=" $( cat packages.csproj | grep Include=\" CSharpAsyncGenerator.CommandLine | cut -d\" -f4) "
200
- async_generator_path=" csharpasyncgenerator.commandline/$async_generator_version /tools"
201
-
202
- if [ ! -d $async_generator_path ]
203
- then
204
- dotnet restore " ./packages.csproj" --packages .
205
- fi
206
-
207
- async_generator_path=" Tools/$async_generator_path /netcoreapp2.1/AsyncGenerator.CommandLine.dll"
208
- cd ..
209
- }
210
-
211
190
mainMenu () {
212
191
echo " ========================= NHIBERNATE BUILD MENU =========================="
213
192
echo " --- TESTING ---"
Original file line number Diff line number Diff line change 11
11
</ItemGroup >
12
12
13
13
<ItemGroup >
14
- <PackageReference Include =" CSharpAsyncGenerator.CommandLine" Version =" 0.19.1" />
15
14
<PackageReference Include =" vswhere" Version =" 2.1.4" />
16
15
<PackageReference Include =" NUnit.Console" Version =" 3.10.0" />
17
16
<PackageReference Include =" GitReleaseManager" Version =" 0.11.0" />
Original file line number Diff line number Diff line change 48
48
</target >
49
49
50
50
<target name =" common.tools-restore" depends =" common.init common.get-dotnet-version" >
51
+ <exec workingdir =" ${root.dir}" program =" dotnet" verbose =" true" >
52
+ <arg line =" tool restore" />
53
+ </exec >
51
54
<exec workingdir =" ${root.dir}/Tools" program =" dotnet" verbose =" true" >
52
55
<arg line =" restore ./packages.csproj --packages ." />
53
56
</exec >
Original file line number Diff line number Diff line change 64
64
<property name =" tool.path" value =" ${tools.dir}/${tool.id}/${tool.version}/" />
65
65
</target >
66
66
67
- <target name =" find-async-generator-console" >
68
- <property name =" tool.id" value =" CSharpAsyncGenerator.CommandLine" />
69
- <call target =" get-tool-info" />
70
- <property name =" async-generator-console" value =" ${tool.path}tools/netcoreapp2.1/AsyncGenerator.CommandLine.dll" />
71
- <if test =" ${version::get-major(version::parse(dotnet.version)) == 3}" >
72
- <property name =" async-generator-console" value =" ${tool.path}tools/netcoreapp3.1/AsyncGenerator.CommandLine.dll" />
73
- </if >
74
- <if test =" ${version::get-major(version::parse(dotnet.version)) >= 5}" >
75
- <property name =" async-generator-console" value =" ${tool.path}tools/net5.0/AsyncGenerator.CommandLine.dll" />
76
- </if >
77
- </target >
78
-
79
- <target name =" generate-async" depends =" solution-restore find-async-generator-console" >
67
+ <target name =" generate-async" depends =" solution-restore" >
80
68
<exec workingdir =" ${root.dir}/src" program =" dotnet" verbose =" true" >
81
- <arg line =" .${ async-generator-console} " />
69
+ <arg line =" async-generator" />
82
70
</exec >
83
71
</target >
84
72
Original file line number Diff line number Diff line change
1
+ {
2
+ "sdk" : {
3
+ "version" : " 5.0.100"
4
+ }
5
+ }
You can’t perform that action at this time.
0 commit comments