-
-
Notifications
You must be signed in to change notification settings - Fork 757
Closed
Labels
Milestone
Description
Prerequisites
- I have written a descriptive issue title
- I have searched issues to ensure it has not already been reported
Cake runner
Cake Frosting
Cake version
3.0.0
Operating system
Windows
Operating system architecture
64-Bit
CI Server
No response
What are you seeing?
Using dotnet version:
$ dotnet --version
6.0.404when I run
$ dotnet publish --help
Description:
Publisher for the .NET Platform
Usage:
dotnet publish [<PROJECT | SOLUTION>...] [options]
Arguments:
<PROJECT | SOLUTION> The project or solution file to operate on. If a file is not specified, the command will search the current directory for one.
Options:
...
--os <os> The target operating system.
...I get an option to set the the target operating system.
However, DotNetPublishSettings.cs does not provide access to the option. (DotnetMSBuildSettings.cs does not either).
What is expected?
I should be able to set the target OS using the DotNetPublishSettings. e.g,
var publishSettings = new DotNetPublishSettings
{
Os = "win"
};Steps to Reproduce
var publishSettings = new DotNetPublishSettings
{
Os = "win"
};does not compile.
Output log
'DotNetPublishSettings' does not contain a definition for 'Os'