Skip to content

Commit

Permalink
UseAppHost = false
Browse files Browse the repository at this point in the history
  • Loading branch information
slang25 authored and daveaglick committed Dec 13, 2021
1 parent 78f4427 commit fd3d5f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Buildalyzer/Environment/BuildEnvironment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ public BuildEnvironment(
_globalProperties.Add(MsBuildProperties.AddModules, "false");
_globalProperties.Add(MsBuildProperties.UseCommonOutputDirectory, "true"); // This is used in a condition to prevent copying in _CopyFilesMarkedCopyLocal
_globalProperties.Add(MsBuildProperties.GeneratePackageOnBuild, "false"); // Prevent NuGet.Build.Tasks.Pack.targets from running the pack targets (since we didn't build anything)
_globalProperties.Add(MsBuildProperties.UseAppHost, "false"); // Prevent creation of native host executable https://docs.microsoft.com/en-us/dotnet/core/project-sdk/msbuild-props#useapphost
}
_additionalGlobalProperties = CopyItems(_globalProperties, additionalGlobalProperties);

Expand Down
1 change: 1 addition & 0 deletions src/Buildalyzer/Environment/MsBuildProperties.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public static class MsBuildProperties
public const string AddModules = nameof(AddModules);
public const string UseCommonOutputDirectory = nameof(UseCommonOutputDirectory);
public const string GeneratePackageOnBuild = nameof(GeneratePackageOnBuild);
public const string UseAppHost = nameof(UseAppHost);

// .NET Framework code analysis rulesets
public const string CodeAnalysisRuleDirectories = nameof(CodeAnalysisRuleDirectories);
Expand Down

0 comments on commit fd3d5f0

Please sign in to comment.