-
Notifications
You must be signed in to change notification settings - Fork 22
/
default.build
41 lines (32 loc) · 1.18 KB
/
default.build
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<Project DefaultTargets="All" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5">
<Import Project="Tools\common.targets" />
<PropertyGroup>
<SolutionFile>Anna.sln</SolutionFile>
<AssemblyVersion>1.0.1006</AssemblyVersion>
</PropertyGroup>
<Target Name="DefineTestsAssemblies">
<ItemGroup>
<TestAssemblies Include="*Tests\bin\$(Configuration)\*Tests.dll" />
</ItemGroup>
</Target>
<Target Name="DefineBuildResult">
<ItemGroup>
<BuildResult Include="Anna\bin\$(Configuration)\*.*" />
</ItemGroup>
</Target>
<Target Name="UpdateNuspec">
<XmlUpdate
Namespace="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd"
XmlFileName="Anna.nuspec"
XPath="package/metadata/version"
Value="$(AssemblyVersion)"/>
</Target>
<Target Name="BuildNupkg">
<Exec Command="Tools\nuget.exe pack Anna.nuspec" />
</Target>
<Target Name="PublishNupkg">
<Exec Command="Tools\nuget.exe push Anna.$(AssemblyVersion).nupkg" />
</Target>
<Target Name="All" DependsOnTargets="UpdateAssemblyInfos; DefaultBuild; DefineTestsAssemblies; RunTests; DefineBuildResult; CopyBuildResult; UpdateNuspec; BuildNupkg; PublishNupkg">
</Target>
</Project>