@@ -135,7 +135,8 @@ Task("Build")
135
135
NoRestore = true ,
136
136
MSBuildSettings = new DotNetMSBuildSettings
137
137
{
138
- Version = packageVersion
138
+ Version = packageVersion ,
139
+ FileVersion = packageVersion ,
139
140
}
140
141
} ) ;
141
142
} ) ;
@@ -154,15 +155,23 @@ Task("Test")
154
155
Configuration = configuration ,
155
156
Loggers = new string [ ] { "trx" } ,
156
157
VSTestReportPath = "TestResult-NUnit3.xml" ,
157
- MSBuildSettings = new DotNetMSBuildSettings ( ) . WithProperty ( "NUnitVersion" , "3" )
158
+ MSBuildSettings = new DotNetMSBuildSettings
159
+ {
160
+ Version = packageVersion ,
161
+ FileVersion = packageVersion ,
162
+ } . WithProperty ( "NUnitVersion" , "3" )
158
163
} ) ;
159
164
Information ( "Testing against NUnit 4.xx" ) ;
160
165
DotNetTest ( TEST_PROJECT , new DotNetTestSettings
161
166
{
162
167
Configuration = configuration ,
163
168
Loggers = new string [ ] { "trx" } ,
164
169
VSTestReportPath = "TestResult-NUnit4.xml" ,
165
- MSBuildSettings = new DotNetMSBuildSettings ( ) . WithProperty ( "NUnitVersion" , "4" )
170
+ MSBuildSettings = new DotNetMSBuildSettings
171
+ {
172
+ Version = packageVersion ,
173
+ FileVersion = packageVersion ,
174
+ } . WithProperty ( "NUnitVersion" , "4" )
166
175
} ) ;
167
176
} )
168
177
. Finally ( ( ) =>
@@ -190,7 +199,8 @@ Task("Pack")
190
199
Properties = new Dictionary < string , string > ( )
191
200
{
192
201
{ "Configuration" , configuration } ,
193
- { "TargetFramework" , targetFramework }
202
+ { "TargetFramework" , targetFramework } ,
203
+ { "NoBuild" , "true" }
194
204
}
195
205
} ) ;
196
206
} ) ;
0 commit comments