File tree 2 files changed +34
-0
lines changed
2 files changed +34
-0
lines changed Original file line number Diff line number Diff line change 24
24
[Bb ]in /
25
25
[Oo ]bj /
26
26
[Ll ]og /
27
+ [Bb ]uild /
27
28
28
29
# Visual Studio 2015 cache/options directory
29
30
.vs /
Original file line number Diff line number Diff line change
1
+ <Project xmlns =" http://schemas.microsoft.com/developer/msbuild/2003" >
2
+
3
+ <PropertyGroup >
4
+ <NuspecFile >$(MSBuildThisFileDirectory)coverlet.nuspec</NuspecFile >
5
+ <Configuration >Debug</Configuration >
6
+ <OutputPath >$(MSBuildThisFileDirectory)build</OutputPath >
7
+ </PropertyGroup >
8
+
9
+ <Target Name =" BuildAllProjects" >
10
+ <Exec Command =" dotnet build $(MSBuildThisFileDirectory)coverlet.sln -c $(Configuration)" />
11
+ </Target >
12
+
13
+ <Target Name =" PublishMSBuildTaskProject" AfterTargets =" BuildAllProjects" >
14
+ <Exec Command =" dotnet publish $(MSBuildThisFileDirectory)src\coverlet.msbuild.tasks\coverlet.msbuild.tasks.csproj -c $(Configuration) -o $(OutputPath)" />
15
+ </Target >
16
+
17
+ <Target Name =" CopyMSBuildScripts" AfterTargets =" PublishMSBuildTaskProject" >
18
+ <ItemGroup >
19
+ <BuildScript Include =" $(MSBuildThisFileDirectory)src\coverlet.msbuild\coverlet.msbuild.props" />
20
+ <BuildScript Include =" $(MSBuildThisFileDirectory)src\coverlet.msbuild\coverlet.msbuild.targets" />
21
+ </ItemGroup >
22
+ <Copy SourceFiles =" @(BuildScript)" DestinationFolder =" $(OutputPath)" />
23
+ </Target >
24
+
25
+ <Target Name =" RunTests" AfterTargets =" CopyMSBuildScripts" >
26
+ <Exec Command =" dotnet test $(MSBuildThisFileDirectory)test\coverlet.core.tests\coverlet.core.tests.csproj -c $(Configuration)" />
27
+ </Target >
28
+
29
+ <Target Name =" CreateNuGetPackage" AfterTargets =" RunTests" >
30
+ <Exec Command =" dotnet pack $(MSBuildThisFileDirectory)src\coverlet.msbuild.tasks\coverlet.msbuild.tasks.csproj -c $(Configuration) -o $(OutputPath) /p:NuspecFile=$(NuspecFile)" />
31
+ </Target >
32
+
33
+ </Project >
You can’t perform that action at this time.
0 commit comments