Skip to content

Commit

Permalink
automatic disabling of packaging for Web apps
Browse files Browse the repository at this point in the history
  • Loading branch information
dgmjr committed Nov 4, 2023
1 parent eceed09 commit a619112
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
13 changes: 10 additions & 3 deletions src/Build/NuGetizer.targets
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<!--
NuGetizer.targets
Created: 2022-10-21-11:40:42
Modified: 2022-10-29-02:48:11
Author: David G. Moore, Jr. <[email protected]>
Copyright © 2022-2023 David G. Moore, Jr., All Rights Reserved
License: MIT (https://opensource.org/licenses/MIT)
-->
Expand All @@ -16,4 +16,11 @@
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
</PropertyGroup>
</Target>
<PropertyGroup>
<IsWebApp>$('$(UsingMicrosoftNETSdkWeb)' == 'true')</IsWebApp>
<GeneratePackageOnBuild Condition="'$(OutputType)' != 'Exe' And '$(IsWebApp)' != 'true'">true</GeneratePackageOnBuild>
<IsNuGetized Condition="!$(GeneratePackageOnBuild)">$(GeneratePackageOnBuild)</IsNuGetized>
<IsPackagingFile Condition="!$(GeneratePackageOnBuild)">$(GeneratePackageOnBuild)</IsPackagingFile>
<IsPackable Condition="!$(GeneratePackageOnBuild)">$(GeneratePackageOnBuild)</IsPackable>
</PropertyGroup>
</Project>
1 change: 0 additions & 1 deletion src/Build/PackageMetadata.props
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
<ServerGarbageCollection>true</ServerGarbageCollection>
<DebugType>portable</DebugType>
<IsPackagingFile>true</IsPackagingFile>
<GeneratePackageOnBuild Condition="'$(OutputType)' == 'Exe'">true</GeneratePackageOnBuild>
<EmitNuspec>true</EmitNuspec>
<ImplicitUsings>enable</ImplicitUsings>
<SwaggerTheme>Monokai</SwaggerTheme>
Expand Down

0 comments on commit a619112

Please sign in to comment.