File tree 2 files changed +5
-3
lines changed
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 5
5
<Framework Condition =" '$(Framework)' == ''" >All</Framework >
6
6
<FileVersion Condition =" '$(FileVersion)' == ''" >1.0.0.0</FileVersion >
7
7
<PackageVersion Condition =" '$(PackageVersion)' == ''" >1.0.0</PackageVersion >
8
- <CommandArguments >/p:Configuration=$(Configuration) /p:FileVersion=$(FileVersion) /p:PackageVersion=$(PackageVersion) /t:$(Framework) /NoLogo</CommandArguments >
8
+ <PackageVersionSuffix Condition =" '$(PackageVersionSuffix)' == ''" >preview</PackageVersionSuffix >
9
+ <CommandArguments >/p:Configuration=$(Configuration) /p:FileVersion=$(FileVersion) /p:PackageVersion=$(PackageVersion) /p:PackageVersionSuffix=$(PackageVersionSuffix) /t:$(Framework) /NoLogo</CommandArguments >
9
10
</PropertyGroup >
10
11
11
12
<Target Name =" Build" >
Original file line number Diff line number Diff line change 8
8
<Tools >$(Root)tools\</Tools >
9
9
<Net452PackDir >$(Artifacts)Package\$(Configuration)\net452\</Net452PackDir >
10
10
<PackageVersion Condition =" '$(PackageVersion)' == ''" >1.0.0</PackageVersion >
11
+ <PackageVersionSuffix Condition =" '$(PackageVersionSuffix)' == ''" >preview</PackageVersionSuffix >
11
12
</PropertyGroup >
12
13
13
14
<Target Name =" net452" >
19
20
<ItemGroup >
20
21
<Net452Projects Include =" $(Src)**\*.csproj" Exclude =" $(Src)**\*.Netcore.csproj;$(Src)**\*.Tests.csproj;$(Src)**\*.Test.csproj;$(Src)**\*.UnitTest.csproj" />
21
22
</ItemGroup >
22
- <Exec Command =" $(NuGet) pack %(Net452Projects.FullPath) -OutputDirectory $(Net452PackDir) -Properties Configuration=$(Configuration) -Version $(PackageVersion)-preview -IncludeReferencedProjects" />
23
+ <Exec Command =" $(NuGet) pack %(Net452Projects.FullPath) -OutputDirectory $(Net452PackDir) -Properties Configuration=$(Configuration) -Version $(PackageVersion)-$(PackageVersionSuffix) -IncludeReferencedProjects" />
23
24
</Target >
24
25
25
26
<Target Name =" netstandard20" >
26
27
<Message Importance =" high" Text =" Pack: netstandard20 started" />
27
28
<ItemGroup >
28
29
<NetStandard20Projects Include =" $(Src)**\*.Netcore.csproj" Exclude =" $(Src)**\*.Tests.Netcore.csproj;$(Src)**\*.Test.Netcore.csproj;$(Src)**\*.UnitTest.Netcore.csproj" />
29
30
</ItemGroup >
30
- <Exec Command =" dotnet pack %(NetStandard20Projects.FullPath) -c $(Configuration) /p:PackageVersion=$(PackageVersion)-preview --no-build" />
31
+ <Exec Command =" dotnet pack %(NetStandard20Projects.FullPath) -c $(Configuration) /p:PackageVersion=$(PackageVersion)-$(PackageVersionSuffix) --no-build" />
31
32
</Target >
32
33
33
34
<Target Name =" All" DependsOnTargets =" net452;netstandard20" >
You can’t perform that action at this time.
0 commit comments