-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.proj
More file actions
23 lines (18 loc) · 948 Bytes
/
build.proj
File metadata and controls
23 lines (18 loc) · 948 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="Build\common.build.proj" />
<Import Project="Build/common.targets" />
<ItemGroup>
<ProjectsToBuild Include="MvcTesting\MvcTesting.csproj" />
<ProjectsToBuild Include="MvcTesting.StubApp\MvcTesting.StubApp.csproj" />
<ProjectsToBuild Include="MvcTesting.Tests\MvcTesting.Tests.csproj" />
</ItemGroup>
<Target Name="SetApiKey">
<Exec Command="dotnet nuget setApiKey $(apiKey) --source nuget.org" />
</Target>
<Target Name="Push">
<Exec Command="dotnet msbuild build.proj /p:RunTests=true /p:Configuration=Release" />
<Exec Command="dotnet nuget push MvcTesting\bin\Release\MvcTesting.$(Version).nupkg --source nuget.org" />
<Exec Command="dotnet clean build.proj" />
<Message Importance="high" Text="Version $(Version) pushed to nuget.org" />
</Target>
</Project>