File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -4,3 +4,4 @@ node_modules/
44npmpackoutput /
55test /webpacktest /package * .json
66test /webpacktest /dist /
7+ artifacts /
Original file line number Diff line number Diff line change 55 <PropertyGroup>
66 <NuspecPath>Microsoft.jQuery.Unobtrusive.Validation.nuspec</NuspecPath>
77 <NpmPackOutputDir>$(MSBuildThisFileDirectory)npmpackoutput\</NpmPackOutputDir>
8+ <DistDir>$(MSBuildThisFileDirectory)dist\</DistDir>
9+ <ArtifactsDir>$(MSBuildThisFileDirectory)artifacts\build\</ArtifactsDir>
810 <WebPackTestDir>$(MSBuildThisFileDirectory)test\webpacktest\</WebPackTestDir>
911 </PropertyGroup>
1012
13+ <ItemGroup>
14+ <DistDirFiles Include="$(DistDir)*.*"/>
15+ </ItemGroup>
16+
1117 <Target Name="Build">
1218 <ReadLinesFromFile File="@(VersionFile)">
1319 <Output TaskParameter="Lines" PropertyName="PackageVersion"/>
1420 </ReadLinesFromFile>
1521 <Exec Command="npm install" />
1622 <Exec Command="npm version --no-git-tag-version --allow-same-version $(PackageVersion)" />
1723 <Exec Command="$(MSBuildThisFileDirectory)node_modules\.bin\gulp" />
18- <Exec Command="nuget pack $(NuspecPath) -Version $(PackageVersion)" />
24+ <Copy
25+ SourceFiles="@(DistDirFiles)"
26+ DestinationFolder="$(ArtifactsDir)" OverwriteReadOnlyFiles="true"/>
27+ <Exec Command="nuget pack $(NuspecPath) -Version $(PackageVersion) -OutputDirectory $(ArtifactsDir)" />
1928
2029 <MSBuild Projects ="$(MSBuildProjectFullPath)"
2130 Properties="PackageVersion=$(PackageVersion)"
You can’t perform that action at this time.
0 commit comments