Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[dotnet watch publish] command with -fileLogger switch is broken after updating Visual Studio 2022 from 17.5.3 to 17.9.6 #40841

Open
symbiotic opened this issue May 13, 2024 · 0 comments
Labels
Area-WebSDK untriaged Request triage from a team member

Comments

@symbiotic
Copy link

symbiotic commented May 13, 2024

Describe the bug

Upto now i was able to have my Visual Studio project continuously build and publish to IIS (upon source code changes), using this command in the project’s directory. Each run cleared the file "compile.log" (when it still worked):
dotnet watch publish -c Release /p:EnvironmentName=Development /p:PublishProfile=Properties\PublishProfiles\IISProfile1.pubxml -o bin\Release\publish -fileLogger -flp:logfile=..\Compiler\compile.log;verbosity=Quiet

After updating the command is not recognized anymore, and i get this error message (see screenshot below), despite not having used the "-f" switch:
Option ‘-f’ expects a single argument but 2 were provided.

image

To Reproduce

Simple way:

  • Run the command. Whether you run it in a project directory makes no difference, because it's no longer recognized anyway.

Full way:

  • Normally you would need a Visual Studio project with a Publish Profile that can pubish to IIS (it's a Blazor app in my case). This profile was saved by Visual Studio to the file "IISProfile1.pubxml", in the example above.
  • You also need a directory called "Compile" next to (on the same level as) the project directory, which is where the "compile.log" specified in the command, is to be written
  • Run the command as Administrator in your project directory

Further technical details

.NET SDK:
Version: 8.0.204
Commit: c338c7548c
Workload version: 8.0.200-manifests.7d36c14f

Runtime Environment:
OS Name: Windows
OS Version: 10.0.17763
OS Platform: Windows
RID: win-x64
Base Path: C:\Program Files\dotnet\sdk\8.0.204\

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-WebSDK untriaged Request triage from a team member labels May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-WebSDK untriaged Request triage from a team member
Projects
None yet
Development

No branches or pull requests

1 participant