Skip to content

Commit

Permalink
test change in properties, invalid [wip]
Browse files Browse the repository at this point in the history
  • Loading branch information
nagilson committed Jun 9, 2022
1 parent aba55ca commit 9f68df6
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ private static Command ConstructCommand()
{
var command = new DocumentedCommand("publish", DocsLink, LocalizableStrings.AppDescription);

ConfigurationOption.SetDefaultValue("Release");

command.AddArgument(SlnOrProjectArgument);
RestoreCommandParser.AddImplicitRestoreOptions(command, includeRuntimeOption: false, includeNoDependenciesOption: true);
command.AddOption(OuputOption);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ Copyright (c) .NET Foundation. All rights reserved.
<Configurations Condition=" '$(Configurations)' == '' ">Debug;Release</Configurations>
<Platforms Condition=" '$(Platforms)' == '' ">AnyCPU</Platforms>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Configuration Condition=" '$(PublishRelease)' == 'True' " and=" '$(Configuration)' == ''">Release</Configuration>
<Configuration Condition=" '$(PackRelease)' == 'True' " and=" '$(Configuration)' == ''">Release</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
</PropertyGroup>

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"profiles": {
"WSL": {
"commandName": "WSL2",
"distributionName": ""
}
}
}
4 changes: 3 additions & 1 deletion src/WebSdk/Publish/Targets/Microsoft.NET.Sdk.Publish.props
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,7 @@ Copyright (c) .NET Foundation. All rights reserved.
***********************************************************************************************
-->
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

<PropertyGroup>
<PublishRelease>True</PublishRelease>
</PropertyGroup>
</Project>

0 comments on commit 9f68df6

Please sign in to comment.