Skip to content

Commit 99cd66f

Browse files
committed
Update package pushing in build script
1 parent 498512b commit 99cd66f

File tree

2 files changed

+16
-8
lines changed

2 files changed

+16
-8
lines changed

build.proj

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -98,18 +98,22 @@ of patent rights can be found in the PATENTS file in the same directory.
9898
</Target>
9999

100100
<Target Name="Push">
101-
<!-- For dev -->
101+
<CallTarget Targets="PushDev" Condition="$(BuildType) != 'Release'" />
102+
<CallTarget Targets="PushRelease" Condition="$(BuildType) == 'Release'" />
103+
</Target>
104+
<Target Name="PushRelease">
105+
<ItemGroup>
106+
<PackageFiles Include="$(PackageOutputDir)\*.nupkg" Exclude="$(PackageOutputDir)\*.symbols.nupkg" />
107+
</ItemGroup>
102108
<Exec
103-
Condition="$(BuildType) != 'Release'"
104109
WorkingDirectory="$(MSBuildProjectDirectory)"
105-
Command="tools\NuGet\nuget.exe push $(PackageOutputDir)\*.symbols.nupkg -Source $(DevNuGetServer) -NonInteractive"
110+
Command="tools\NuGet\nuget.exe push %(PackageFiles.Identity) -NonInteractive"
106111
/>
107-
108-
<!-- For release -->
112+
</Target>
113+
<Target Name="PushDev">
109114
<Exec
110-
Condition="$(BuildType) == 'Release'"
111115
WorkingDirectory="$(MSBuildProjectDirectory)"
112-
Command="tools\NuGet\nuget.exe push $(PackageOutputDir)\*.nupkg -NonInteractive"
113-
/>
116+
Command="tools\NuGet\nuget.exe push $(PackageOutputDir)\*.symbols.nupkg -Source $(DevNuGetServer) -NonInteractive"
117+
/>
114118
</Target>
115119
</Project>

src/Cassette.React/Cassette.React.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@
7171
<None Include="packages.config" />
7272
</ItemGroup>
7373
<ItemGroup>
74+
<ProjectReference Include="..\React.Web\React.Web.csproj">
75+
<Project>{134edd16-8dc8-4983-a2e0-b38dab1ecf1c}</Project>
76+
<Name>React.Web</Name>
77+
</ProjectReference>
7478
<ProjectReference Include="..\React\React.csproj">
7579
<Project>{d0cc8a22-cee6-485c-924b-1f94426fea59}</Project>
7680
<Name>React</Name>

0 commit comments

Comments
 (0)