Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit bee4c6f

Browse filesBrowse files
Stop "dotnet new" from stripping out important parts of .csproj files
1 parent cc85930 commit bee4c6f
Copy full SHA for bee4c6f

File tree

Expand file treeCollapse file tree

6 files changed

+18
-6
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

6 files changed

+18
-6
lines changed
Open diff view settings
Collapse file

‎templates/AngularSpa/AngularSpa.csproj‎

Copy file name to clipboardExpand all lines: templates/AngularSpa/AngularSpa.csproj
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,16 @@
2121
<Content Remove="ClientApp\**" />
2222
</ItemGroup>
2323

24+
<!--/-:cnd:noEmit -->
2425
<Target Name="DebugRunWebpack" BeforeTargets="Build" Condition=" '$(Configuration)' == 'Debug' And !Exists('wwwroot\dist') ">
2526
<!-- In development, the dist files won't exist on the first run or when cloning to
2627
a different machine, so rebuild them if not already present. -->
2728
<Message Importance="high" Text="Performing first-run Webpack build..." />
2829
<Exec Command="node node_modules/webpack/bin/webpack.js --config webpack.config.vendor.js" />
2930
<Exec Command="node node_modules/webpack/bin/webpack.js" />
3031
</Target>
31-
32+
<!--/+:cnd:noEmit -->
33+
3234
<Target Name="PublishRunWebpack" AfterTargets="ComputeFilesToPublish">
3335
<!-- As part of publishing, ensure the JS resources are freshly built in production mode -->
3436
<Exec Command="npm install" />
Collapse file

‎templates/AureliaSpa/AureliaSpa.csproj‎

Copy file name to clipboardExpand all lines: templates/AureliaSpa/AureliaSpa.csproj
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,16 @@
1616
<DotNetCliToolReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Tools" Version="2.0.0-*" />
1717
</ItemGroup>
1818

19+
<!--/-:cnd:noEmit -->
1920
<Target Name="DebugRunWebpack" BeforeTargets="Build" Condition=" '$(Configuration)' == 'Debug' And !Exists('wwwroot\dist') ">
2021
<!-- In development, the dist files won't exist on the first run or when cloning to
2122
a different machine, so rebuild them if not already present. -->
2223
<Message Importance="high" Text="Performing first-run Webpack build..." />
2324
<Exec Command="node node_modules/webpack/bin/webpack.js --config webpack.config.vendor.js" />
2425
<Exec Command="node node_modules/webpack/bin/webpack.js" />
2526
</Target>
26-
27+
<!--/+:cnd:noEmit -->
28+
2729
<Target Name="PublishRunWebpack" AfterTargets="ComputeFilesToPublish">
2830
<!-- As part of publishing, ensure the JS resources are freshly built in production mode -->
2931
<Exec Command="npm install" />
Collapse file

‎templates/KnockoutSpa/KnockoutSpa.csproj‎

Copy file name to clipboardExpand all lines: templates/KnockoutSpa/KnockoutSpa.csproj
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,16 @@
1616
<DotNetCliToolReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Tools" Version="2.0.0-*" />
1717
</ItemGroup>
1818

19+
<!--/-:cnd:noEmit -->
1920
<Target Name="DebugRunWebpack" BeforeTargets="Build" Condition=" '$(Configuration)' == 'Debug' And !Exists('wwwroot\dist') ">
2021
<!-- In development, the dist files won't exist on the first run or when cloning to
2122
a different machine, so rebuild them if not already present. -->
2223
<Message Importance="high" Text="Performing first-run Webpack build..." />
2324
<Exec Command="node node_modules/webpack/bin/webpack.js --config webpack.config.vendor.js" />
2425
<Exec Command="node node_modules/webpack/bin/webpack.js" />
2526
</Target>
26-
27+
<!--/+:cnd:noEmit -->
28+
2729
<Target Name="PublishRunWebpack" AfterTargets="ComputeFilesToPublish">
2830
<!-- As part of publishing, ensure the JS resources are freshly built in production mode -->
2931
<Exec Command="npm install" />
Collapse file

‎templates/ReactReduxSpa/ReactReduxSpa.csproj‎

Copy file name to clipboardExpand all lines: templates/ReactReduxSpa/ReactReduxSpa.csproj
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,16 @@
2121
<Content Remove="ClientApp\**" />
2222
</ItemGroup>
2323

24+
<!--/-:cnd:noEmit -->
2425
<Target Name="DebugRunWebpack" BeforeTargets="Build" Condition=" '$(Configuration)' == 'Debug' And !Exists('wwwroot\dist') ">
2526
<!-- In development, the dist files won't exist on the first run or when cloning to
2627
a different machine, so rebuild them if not already present. -->
2728
<Message Importance="high" Text="Performing first-run Webpack build..." />
2829
<Exec Command="node node_modules/webpack/bin/webpack.js --config webpack.config.vendor.js" />
2930
<Exec Command="node node_modules/webpack/bin/webpack.js" />
3031
</Target>
31-
32+
<!--/+:cnd:noEmit -->
33+
3234
<Target Name="PublishRunWebpack" AfterTargets="ComputeFilesToPublish">
3335
<!-- As part of publishing, ensure the JS resources are freshly built in production mode -->
3436
<Exec Command="npm install" />
Collapse file

‎templates/ReactSpa/ReactSpa.csproj‎

Copy file name to clipboardExpand all lines: templates/ReactSpa/ReactSpa.csproj
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,16 @@
1616
<DotNetCliToolReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Tools" Version="2.0.0-*" />
1717
</ItemGroup>
1818

19+
<!--/-:cnd:noEmit -->
1920
<Target Name="DebugRunWebpack" BeforeTargets="Build" Condition=" '$(Configuration)' == 'Debug' And !Exists('wwwroot\dist') ">
2021
<!-- In development, the dist files won't exist on the first run or when cloning to
2122
a different machine, so rebuild them if not already present. -->
2223
<Message Importance="high" Text="Performing first-run Webpack build..." />
2324
<Exec Command="node node_modules/webpack/bin/webpack.js --config webpack.config.vendor.js" />
2425
<Exec Command="node node_modules/webpack/bin/webpack.js" />
2526
</Target>
26-
27+
<!--/+:cnd:noEmit -->
28+
2729
<Target Name="PublishRunWebpack" AfterTargets="ComputeFilesToPublish">
2830
<!-- As part of publishing, ensure the JS resources are freshly built in production mode -->
2931
<Exec Command="npm install" />
Collapse file

‎templates/VueSpa/VueSpa.csproj‎

Copy file name to clipboardExpand all lines: templates/VueSpa/VueSpa.csproj
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,16 @@
1616
<DotNetCliToolReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Tools" Version="2.0.0-*" />
1717
</ItemGroup>
1818

19+
<!--/-:cnd:noEmit -->
1920
<Target Name="DebugRunWebpack" BeforeTargets="Build" Condition=" '$(Configuration)' == 'Debug' And !Exists('wwwroot\dist') ">
2021
<!-- In development, the dist files won't exist on the first run or when cloning to
2122
a different machine, so rebuild them if not already present. -->
2223
<Message Importance="high" Text="Performing first-run Webpack build..." />
2324
<Exec Command="node node_modules/webpack/bin/webpack.js --config webpack.config.vendor.js" />
2425
<Exec Command="node node_modules/webpack/bin/webpack.js" />
2526
</Target>
26-
27+
<!--/+:cnd:noEmit -->
28+
2729
<Target Name="PublishRunWebpack" AfterTargets="ComputeFilesToPublish">
2830
<!-- As part of publishing, ensure the JS resources are freshly built in production mode -->
2931
<Exec Command="npm install" />

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.