Skip to content

Commit f7781db

Browse files
committed
use property instead of configuration
1 parent a5c18a9 commit f7781db

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

SFI.ConsoleApp/Properties/PublishProfiles/net6.0-minimal.pubxml

+3-2
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
44
-->
55
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
66
<PropertyGroup>
7-
<Configuration>Minimal</Configuration>
7+
<Configuration>Release</Configuration>
88
<Platform>Any CPU</Platform>
9-
<PublishDir>bin\Minimal\net6.0\publish\</PublishDir>
9+
<PublishDir>bin\Release\net6.0-minimal\publish\</PublishDir>
1010
<PublishProtocol>FileSystem</PublishProtocol>
1111
<TargetFramework>net6.0</TargetFramework>
1212
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
@@ -15,5 +15,6 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
1515
<PublishSelfContained>false</PublishSelfContained>
1616
<PublishReadyToRun>false</PublishReadyToRun>
1717
<GeneratePackageOnBuild>False</GeneratePackageOnBuild>
18+
<SfiMinimalBuild>true</SfiMinimalBuild>
1819
</PropertyGroup>
1920
</Project>

SFI.ConsoleApp/SFI.ConsoleApp.csproj

+2-3
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
<PackAsTool>true</PackAsTool>
3333
<ToolCommandName>sfi</ToolCommandName>
3434
<GenerateNuspecDependsOn>$(GenerateNuspecDependsOn);_ExcludeTargetFramework;_ExcludeTargetFrameworkDependency</GenerateNuspecDependsOn>
35-
<Configurations>Debug;Release;Minimal</Configurations>
3635
<ConditionalCompilationSymbols>
3736
<ConditionalCompilationSymbol Name="SFI_MINIMAL" Comment="Minimal build without additional components." />
3837
</ConditionalCompilationSymbols>
@@ -58,7 +57,7 @@
5857
<GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles>
5958
</PropertyGroup>
6059

61-
<PropertyGroup Condition="'$(Configuration)' == 'Minimal'">
60+
<PropertyGroup Condition="'$(SfiMinimalBuild)' == 'true'">
6261
<DefineConstants>SFI_MINIMAL</DefineConstants>
6362
</PropertyGroup>
6463

@@ -91,7 +90,7 @@
9190
</ItemGroup>
9291

9392
<Choose>
94-
<When Condition="'$(Configuration)' == 'Minimal'">
93+
<When Condition="'$(SfiMinimalBuild)' == 'true'">
9594
<!-- No additional references. -->
9695
</When>
9796
<When Condition="'$(TargetFramework)' == 'net6.0-windows' or '$(TargetFramework)' == 'net461'">

0 commit comments

Comments
 (0)