You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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
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.
To Reproduce
Simple way:
Full way:
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\
The text was updated successfully, but these errors were encountered: