Open ZeProgFactory opened 3 years ago
Thanks for the report.
Can you try adding this to your webassembly project:
<PropertyGroup>
<UseSharedCompilation>false</UseSharedCompilation>
</PropertyGroup>
And let us know if this helps ?
Unfortunately, no change: Still working in local debug, but not able to build for publish.
Thanks. As a workaround, you can use the command line dotnet publish
command line.
That did it :-) Thanks, I tend to underestimate the command line, although I discovered computers with it...
Is it related to warnings treated as errors? We have such an issue that .editorconfig override for a particular path has no effect in the WASM project.
No, there is really a race condition when using the publish target in Visual Studio, but it's not clear why.
Having same problem with recently created project. Publish fails most of the time with the file being used error.
For anyone having similar problem, workaround was to get the name of the publish profile I was trying to use from the
dotnet publish -p:PublishProfile=FolderProfile -c:Release
Didn't test with other publish types, Azure etc. but beware, not all parts of the PublishProfile are honoured, hence the release part. See https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-publish#pubxml-files for exceptions. Also folder is not cleared before publish, so need to do manually.
Current behavior
Local debug
No problem to build and deploy to local IIS Express.
Release (deploy to folder)
tmp584D.tmp
Output window
Expected behavior
Building the solution.
How to reproduce it (as minimally and precisely as possible)
We have this issue on several computers. They are all running W10 Pro (up to date) and VS 2019 last public release. We can send a repro project in private message.
Workaround
No known workaround
Environment
Nuget Package Version(s): Microsoft.Extensions.Logging.Console Version="1.1.1" Microsoft.Extensions.Logging.Filter Version="1.1.1" System.Text.Json Version="5.0.2" Uno.UI.WebAssembly Version="3.7.3" Uno.UI.RemoteControl Version="3.7.3" Condition="'$(Configuration)'=='Debug'" Uno.Wasm.Bootstrap Version="2.1.0" Uno.Wasm.Bootstrap.DevServer Version="2.1.0"
Affected platform(s):
IDE:
Relevant plugins:
Anything else we need to know?