unoplatform / uno

Open-source platform for building cross-platform native Mobile, Web, Desktop and Embedded apps quickly. Create rich, C#/XAML, single-codebase apps from any IDE. Hot Reload included! 90m+ NuGet Downloads!!
https://platform.uno
Apache License 2.0
8.79k stars 706 forks source link

[Build] [WASM] Error CS2012: Cannot open `'D:\...\ClientWasm.dll'` for writing #6006

Open ZeProgFactory opened 3 years ago

ZeProgFactory commented 3 years ago

Current behavior

Local debug

No problem to build and deploy to local IIS Express.

Release (deploy to folder)

image

tmp584D.tmp

14/05/2021 14:36:20
System.AggregateException: One or more errors occurred. ---> Microsoft.WebTools.Shared.Exceptions.WebToolsException: Build failed. Check the Output window for more details.
   --- End of inner exception stack trace ---
---> (Inner Exception #0) Microsoft.WebTools.Shared.Exceptions.WebToolsException: Build failed. Check the Output window for more details.<---

Microsoft.WebTools.Shared.Exceptions.WebToolsException: Build failed. Check the Output window for more details.

===================

Output window

Build started...
1>------ Build started: Project: MetriShop.Client.Wasm, Configuration: Release Any CPU ------
1>D:\GitWare\TopSales\MetriShop\MetriShop.Client\MetriShop.Client\MetriShop.Client.Shared\Pages\BodyPage.xaml.cs(59,19,66,21): warning CS4014: Because this call is not awaited, execution of the current method continues before the call is completed. Consider applying the 'await' operator to the result of the call.
1>MetriShop.Client.Wasm -> D:\GitWare\TopSales\MetriShop\MetriShop.Client\MetriShop.Client\MetriShop.Client.Wasm\bin\Release\netstandard2.1\MetriShop.Client.Wasm.dll
1>Done building project "MetriShop.Client.Wasm.csproj".
2>------ Publish started: Project: MetriShop.Client.Wasm, Configuration: Release Any CPU ------
Connecting to D:\GitWare\TopSales\MetriShop\MetriShop.Client\Publish...
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\Roslyn\csc.exe /noconfig /unsafe- /checked- /nowarn:NU1701,1701,1702,2008 /fullpaths /nostdlib+ /errorreport:prompt /warn:4 /define:TRACE;RELEASE;NETSTANDARD;NETSTANDARD2_1;UNO_REFERENCE_API;HAS_UNO_WASM;__WASM__;UNO_REFERENCE_API;HAS_UNO_WASM;__WASM__;HAS_UNO;UNO_HAS_FRAMEWORKELEMENT_MEASUREOVERRIDE;UNO_HAS_NO_IDEPENDENCYOBJECT;UNO_REFERENCE_API /errorendlocation /preferreduilang:en-US /highentropyva+ /reference:C:\Users\zepro\.nuget\packages\commonservicelocator\2.0.5\lib\netstandard2.1\CommonServiceLocator.dll /reference:C:\Users\zepro\.nuget\packages\microsoft.bcl.asyncinterfaces\5.0.0\lib\netstandard2.1\Microsoft.Bcl.AsyncInterfaces.dll /reference:C:\Users\zepro\.nuget\packages\microsoft.extensions.configuration.abstractions\1.1.1\lib\netstandard1.0\Microsoft.Extensions.Configuration.Abstractions.dll /reference:C:\Users\zepro\.nuget\packages\microsoft.extensions.dependencyinjection.abstractions\1.1.0\lib\netstandard1.0\Microsoft.Extensions.DependencyInjection.Abstractions.dll /reference:C:\Users\zepro\.nuget\packages\microsoft.extensions.logging.abstractions\1.1.1\lib\netstandard1.1\Microsoft.Extensions.Logging.Abstractions.dll /reference:C:\Users\zepro\.nuget\packages\microsoft.extensions.logging.console\1.1.1\lib\netstandard1.3\Microsoft.Extensions.Logging.Console.dll /reference:C:\Users\zepro\.nuget\packages\microsoft.extensions.logging\1.1.1\lib\netstandard1.1\Microsoft.Extensions.Logging.dll /reference:C:\Users\zepro\.nuget\packages\microsoft.extensions.logging.filter\1.1.1\lib\netstandard1.1\Microsoft.Extensions.Logging.Filter.dll /reference:C:\Users\zepro\.nuget\packages\microsoft.extensions.primitives\1.1.0\lib\netstandard1.0\Microsoft.Extensions.Primitives.dll /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\Microsoft.Win32.Primitives.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\mscorlib.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\netstandard.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.AppContext.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Buffers.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Collections.Concurrent.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Collections.dll" /reference:C:\Users\zepro\.nuget\packages\system.collections.immutable\1.3.1\lib\netstandard1.0\System.Collections.Immutable.dll /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Collections.NonGeneric.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Collections.Specialized.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.ComponentModel.Composition.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.ComponentModel.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.ComponentModel.EventBasedAsync.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.ComponentModel.Primitives.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.ComponentModel.TypeConverter.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Console.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Core.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Data.Common.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Data.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Diagnostics.Contracts.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Diagnostics.Debug.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Diagnostics.FileVersionInfo.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Diagnostics.Process.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Diagnostics.StackTrace.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Diagnostics.TextWriterTraceListener.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Diagnostics.Tools.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Diagnostics.TraceSource.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Diagnostics.Tracing.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Drawing.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Drawing.Primitives.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Dynamic.Runtime.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Globalization.Calendars.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Globalization.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Globalization.Extensions.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.IO.Compression.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.IO.Compression.FileSystem.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.IO.Compression.ZipFile.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.IO.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.IO.FileSystem.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.IO.FileSystem.DriveInfo.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.IO.FileSystem.Primitives.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.IO.FileSystem.Watcher.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.IO.IsolatedStorage.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.IO.MemoryMappedFiles.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.IO.Pipes.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.IO.UnmanagedMemoryStream.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Linq.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Linq.Expressions.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Linq.Parallel.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Linq.Queryable.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Memory.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Net.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Net.Http.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Net.NameResolution.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Net.NetworkInformation.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Net.Ping.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Net.Primitives.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Net.Requests.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Net.Security.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Net.Sockets.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Net.WebHeaderCollection.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Net.WebSockets.Client.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Net.WebSockets.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Numerics.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Numerics.Vectors.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.ObjectModel.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Reflection.DispatchProxy.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Reflection.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Reflection.Emit.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Reflection.Emit.ILGeneration.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Reflection.Emit.Lightweight.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Reflection.Extensions.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Reflection.Primitives.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Resources.Reader.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Resources.ResourceManager.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Resources.Writer.dll" /reference:C:\Users\zepro\.nuget\packages\system.runtime.compilerservices.unsafe\5.0.0\ref\netstandard2.1\System.Runtime.CompilerServices.Unsafe.dll /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Runtime.CompilerServices.VisualC.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Runtime.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Runtime.Extensions.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Runtime.Handles.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Runtime.InteropServices.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Runtime.InteropServices.RuntimeInformation.dll" /reference:C:\Users\zepro\.nuget\packages\system.runtime.interopservices.windowsruntime\4.3.0\ref\netstandard1.0\System.Runtime.InteropServices.WindowsRuntime.dll /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Runtime.Numerics.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Runtime.Serialization.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Runtime.Serialization.Formatters.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Runtime.Serialization.Json.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Runtime.Serialization.Primitives.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Runtime.Serialization.Xml.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Security.Claims.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Security.Cryptography.Algorithms.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Security.Cryptography.Csp.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Security.Cryptography.Encoding.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Security.Cryptography.Primitives.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Security.Cryptography.X509Certificates.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Security.Principal.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Security.SecureString.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.ServiceModel.Web.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Text.Encoding.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Text.Encoding.Extensions.dll" /reference:C:\Users\zepro\.nuget\packages\system.text.encodings.web\5.0.1\lib\netstandard2.1\System.Text.Encodings.Web.dll /reference:C:\Users\zepro\.nuget\packages\system.text.json\5.0.2\lib\netstandard2.0\System.Text.Json.dll /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Text.RegularExpressions.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Threading.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Threading.Overlapped.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Threading.Tasks.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Threading.Tasks.Extensions.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Threading.Tasks.Parallel.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Threading.Thread.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Threading.ThreadPool.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Threading.Timer.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Transactions.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.ValueTuple.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Web.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Windows.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Xml.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Xml.Linq.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Xml.ReaderWriter.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Xml.Serialization.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Xml.XDocument.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Xml.XmlDocument.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Xml.XmlSerializer.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Xml.XPath.dll" /reference:"C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.Xml.XPath.XDocument.dll" /reference:C:\Users\zepro\.nuget\packages\uno.core\2.3.0\lib\netstandard2.1\Uno.Core.dll /reference:C:\Users\zepro\.nuget\packages\uno.diagnostics.eventing\1.0.4\lib\netstandard2.0\Uno.Diagnostics.Eventing.dll /reference:C:\Users\zepro\.nuget\packages\uno.ui\3.7.3\lib\netstandard2.0\Uno.dll /reference:C:\Users\zepro\.nuget\packages\uno.ui\3.7.3\lib\netstandard2.0\Uno.Foundation.dll /reference:C:\Users\zepro\.nuget\packages\uno.foundation.runtime.webassembly\3.7.3\lib\netstandard2.0\Uno.Foundation.Runtime.WebAssembly.dll /reference:C:\Users\zepro\.nuget\packages\uno.ui\3.7.3\lib\netstandard2.0\Uno.UI.dll /reference:C:\Users\zepro\.nuget\packages\uno.ui\3.7.3\lib\netstandard2.0\Uno.UI.FluentTheme.dll /reference:C:\Users\zepro\.nuget\packages\uno.ui.runtime.webassembly\3.7.3\lib\netstandard2.0\Uno.UI.Runtime.WebAssembly.dll /reference:C:\Users\zepro\.nuget\packages\uno.ui\3.7.3\lib\netstandard2.0\Uno.UI.Toolkit.dll /reference:C:\Users\zepro\.nuget\packages\uno.ui\3.7.3\lib\netstandard2.0\Uno.Xaml.dll /reference:C:\Users\zepro\.nuget\packages\zpf_basics\2.0.0.22\lib\netstandard2.0\ZPF_Basics.dll /debug+ /debug:portable /filealign:512 /optimize+ /out:obj\Release\netstandard2.1\MetriShop.Client.Wasm.dll /resource:WasmCSS\Fonts.css,MetriShop.Client.Wasm.WasmCSS.Fonts.css /resource:WasmScripts\AppManifest.js,MetriShop.Client.Wasm.WasmScripts.AppManifest.js /resource:LinkerConfig.xml,MetriShop.Client.Wasm.xml /resource:D:\GitWare\TopSales\MetriShop\MetriShop.Client\MetriShop.Client\MetriShop.Client.Wasm\obj\Release\netstandard2.1\g\ResourcesGenerator\Strings\en\Resources.resw\Resources.upri,Strings.en.Resources.resw.Resources.upri /target:exe /warnaserror- /utf8output /deterministic+ /langversion:8.0 /analyzerconfig:D:\GitWare\TopSales\MetriShop\MetriShop.Client\.editorconfig /analyzer:C:\Users\zepro\.nuget\packages\uno.ui\3.7.3\analyzers\Uno.Analyzers.dll /analyzer:C:\Users\zepro\.nuget\packages\uno.ui\3.7.3\analyzers\dotnet\cs\CommonServiceLocator.dll /analyzer:C:\Users\zepro\.nuget\packages\uno.ui\3.7.3\analyzers\dotnet\cs\Microsoft.ApplicationInsights.dll /analyzer:C:\Users\zepro\.nuget\packages\uno.ui\3.7.3\analyzers\dotnet\cs\Microsoft.DotNet.PlatformAbstractions.dll /analyzer:C:\Users\zepro\.nuget\packages\uno.ui\3.7.3\analyzers\dotnet\cs\Microsoft.Extensions.Logging.Abstractions.dll /analyzer:C:\Users\zepro\.nuget\packages\uno.ui\3.7.3\analyzers\dotnet\cs\Microsoft.Extensions.Logging.dll /analyzer:C:\Users\zepro\.nuget\packages\uno.ui\3.7.3\analyzers\dotnet\cs\Mono.Cecil.Mdb.dll /analyzer:C:\Users\zepro\.nuget\packages\uno.ui\3.7.3\analyzers\dotnet\cs\Mono.Cecil.Pdb.dll /analyzer:C:\Users\zepro\.nuget\packages\uno.ui\3.7.3\analyzers\dotnet\cs\Mono.Cecil.Rocks.dll /analyzer:C:\Users\zepro\.nuget\packages\uno.ui\3.7.3\analyzers\dotnet\cs\Mono.Cecil.dll /analyzer:C:\Users\zepro\.nuget\packages\uno.ui\3.7.3\analyzers\dotnet\cs\System.Diagnostics.DiagnosticSource.dll /analyzer:C:\Users\zepro\.nuget\packages\uno.ui\3.7.3\analyzers\dotnet\cs\Uno.Core.dll /analyzer:C:\Users\zepro\.nuget\packages\uno.ui\3.7.3\analyzers\dotnet\cs\Uno.Xaml.dll /additionalfile:D:\GitWare\TopSales\MetriShop\MetriShop.Client\MetriShop.Client\MetriShop.Client.Shared\Pages\ActionPage.xaml /additionalfile:D:\GitWare\TopSales\MetriShop\MetriShop.Client\MetriShop.Client\MetriShop.Client.Shared\Pages\BodyPage.xaml /additionalfile:D:\GitWare\TopSales\MetriShop\MetriShop.Client\MetriShop.Client\MetriShop.Client.Shared\Pages\MainPage.xaml /additionalfile:D:\GitWare\TopSales\MetriShop\MetriShop.Client\MetriShop.Client\MetriShop.Client.Shared\Pages\StorePage.xaml /additionalfile:D:\GitWare\TopSales\MetriShop\MetriShop.Client\MetriShop.Client\MetriShop.Client.Shared\App.xaml /additionalfile:D:\GitWare\TopSales\MetriShop\MetriShop.Client\MetriShop.Client\MetriShop.Client.Shared\Strings\en\Resources.resw /additionalfile:C:\Users\zepro\.nuget\packages\uno.ui\3.7.3\analyzers\Uno.Analyzers.dll /additionalfile:C:\Users\zepro\.nuget\packages\uno.ui\3.7.3\analyzers\dotnet\cs\CommonServiceLocator.dll /additionalfile:C:\Users\zepro\.nuget\packages\uno.ui\3.7.3\analyzers\dotnet\cs\Microsoft.ApplicationInsights.dll /additionalfile:C:\Users\zepro\.nuget\packages\uno.ui\3.7.3\analyzers\dotnet\cs\Microsoft.DotNet.PlatformAbstractions.dll /additionalfile:C:\Users\zepro\.nuget\packages\uno.ui\3.7.3\analyzers\dotnet\cs\Microsoft.Extensions.Logging.Abstractions.dll /additionalfile:C:\Users\zepro\.nuget\packages\uno.ui\3.7.3\analyzers\dotnet\cs\Microsoft.Extensions.Logging.dll /additionalfile:C:\Users\zepro\.nuget\packages\uno.ui\3.7.3\analyzers\dotnet\cs\Mono.Cecil.Mdb.dll /additionalfile:C:\Users\zepro\.nuget\packages\uno.ui\3.7.3\analyzers\dotnet\cs\Mono.Cecil.Pdb.dll /additionalfile:C:\Users\zepro\.nuget\packages\uno.ui\3.7.3\analyzers\dotnet\cs\Mono.Cecil.Rocks.dll /additionalfile:C:\Users\zepro\.nuget\packages\uno.ui\3.7.3\analyzers\dotnet\cs\Mono.Cecil.dll /additionalfile:C:\Users\zepro\.nuget\packages\uno.ui\3.7.3\analyzers\dotnet\cs\System.Diagnostics.DiagnosticSource.dll /additionalfile:C:\Users\zepro\.nuget\packages\uno.ui\3.7.3\analyzers\dotnet\cs\Uno.Core.dll /additionalfile:C:\Users\zepro\.nuget\packages\uno.ui\3.7.3\analyzers\dotnet\cs\Uno.UI.SourceGenerators.dll /additionalfile:C:\Users\zepro\.nuget\packages\uno.ui\3.7.3\analyzers\dotnet\cs\Uno.Xaml.dll Program.cs D:\GitWare\TopSales\MetriShop\MetriShop.Client\MetriShop.Client\MetriShop.Client.Shared\CS\ColorsHelper.cs D:\GitWare\TopSales\MetriShop\MetriShop.Client\MetriShop.Client\MetriShop.Client.Shared\Pages\ActionPage.xaml.cs D:\GitWare\TopSales\MetriShop\MetriShop.Client\MetriShop.Client\MetriShop.Client.Shared\Pages\BodyPage.xaml.cs D:\GitWare\TopSales\MetriShop\MetriShop.Client\MetriShop.Client\MetriShop.Client.Shared\App.xaml.cs D:\GitWare\TopSales\MetriShop\MetriShop.Client\MetriShop.Client\MetriShop.Client.Shared\Models\Intervention_MS.cs D:\GitWare\TopSales\MetriShop\MetriShop.Client\MetriShop.Client\MetriShop.Client.Shared\Models\Document_MS.cs D:\GitWare\TopSales\MetriShop\MetriShop.Client\MetriShop.Client\MetriShop.Client.Shared\Models\Magasin_MS.cs D:\GitWare\TopSales\MetriShop\MetriShop.Client\MetriShop.Client\MetriShop.Client.Shared\Pages\MainPage.xaml.cs D:\GitWare\TopSales\MetriShop\MetriShop.Client\MetriShop.Client\MetriShop.Client.Shared\Models\Action_MS.cs D:\GitWare\TopSales\MetriShop\MetriShop.Client\MetriShop.Client\MetriShop.Client.Shared\Pages\StorePage.xaml.cs D:\GitWare\TopSales\MetriShop\MetriShop.Client\MetriShop.Client\MetriShop.Client.Shared\VersionInfo.cs D:\GitWare\TopSales\MetriShop\MetriShop.Client\MetriShop.Client\MetriShop.Client.Shared\ViewModels\MetriShopViewModel.cs D:\GitWare\TopSales\MetriShop\MetriShop.Client\MetriShop.Client\MetriShop.Client.Shared\ViewModels\SampleViewModel.cs D:\GitWare\TopSales\MetriShop\MetriShop.Client\MetriShop.Client\MetriShop.Client.Shared\ViewModels\MainViewModel.cs "obj\Release\netstandard2.1\.NETStandard,Version=v2.1.AssemblyAttributes.cs" obj\Release\netstandard2.1\/unouiruntimewasm_keepalive.g.cs obj\Release\netstandard2.1\MetriShop.Client.Wasm.AssemblyInfo.cs D:\GitWare\TopSales\MetriShop\MetriShop.Client\MetriShop.Client\MetriShop.Client.Wasm\obj\Release\netstandard2.1\\g\BindableTypeProvidersSourceGenerator\BindableMetadata.g.cs D:\GitWare\TopSales\MetriShop\MetriShop.Client\MetriShop.Client\MetriShop.Client.Wasm\obj\Release\netstandard2.1\\g\XamlCodeGenerator\GlobalStaticResources.g.cs D:\GitWare\TopSales\MetriShop\MetriShop.Client\MetriShop.Client\MetriShop.Client.Wasm\obj\Release\netstandard2.1\\g\XamlCodeGenerator\StorePage_c8df5a6838bacf295ab35f4e7514c949.g.cs D:\GitWare\TopSales\MetriShop\MetriShop.Client\MetriShop.Client\MetriShop.Client.Wasm\obj\Release\netstandard2.1\\g\XamlCodeGenerator\MainPage_550f5798b4e03ac68c2f1a6500432e3a.g.cs D:\GitWare\TopSales\MetriShop\MetriShop.Client\MetriShop.Client\MetriShop.Client.Wasm\obj\Release\netstandard2.1\\g\XamlCodeGenerator\BodyPage_56c77122d9593f21ca63fd365e5e73c2.g.cs D:\GitWare\TopSales\MetriShop\MetriShop.Client\MetriShop.Client\MetriShop.Client.Wasm\obj\Release\netstandard2.1\\g\XamlCodeGenerator\App_f063ef4b9d09433df1845b26abcd51d3.g.cs D:\GitWare\TopSales\MetriShop\MetriShop.Client\MetriShop.Client\MetriShop.Client.Wasm\obj\Release\netstandard2.1\\g\XamlCodeGenerator\ActionPage_016359eab7dbed2d94b9b4ace8a192c2.g.cs /warnaserror+:NU1605
D:\GitWare\TopSales\MetriShop\MetriShop.Client\MetriShop.Client\MetriShop.Client.Shared\Pages\BodyPage.xaml.cs(59,19): Warning CS4014: Because this call is not awaited, execution of the current method continues before the call is completed. Consider applying the 'await' operator to the result of the call.
CSC(0,0): Error CS2012: Cannot open 'D:\GitWare\TopSales\MetriShop\MetriShop.Client\MetriShop.Client\MetriShop.Client.Wasm\obj\Release\netstandard2.1\MetriShop.Client.Wasm.dll' for writing -- 'The process cannot access the file 'D:\GitWare\TopSales\MetriShop\MetriShop.Client\MetriShop.Client\MetriShop.Client.Wasm\obj\Release\netstandard2.1\MetriShop.Client.Wasm.dll' because it is being used by another process.'

2>Build failed. Check the Output window for more details.
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
========== Publish: 0 succeeded, 1 failed, 0 skipped ==========

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?

jeromelaban commented 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 ?

ZeProgFactory commented 3 years ago

Unfortunately, no change: Still working in local debug, but not able to build for publish.

jeromelaban commented 3 years ago

Thanks. As a workaround, you can use the command line dotnet publish command line.

ZeProgFactory commented 3 years ago

That did it :-) Thanks, I tend to underestimate the command line, although I discovered computers with it...

xperiandri commented 3 years ago

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.

jeromelaban commented 3 years ago

No, there is really a race condition when using the publish target in Visual Studio, but it's not clear why.

Rippletank commented 1 year ago

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 \Properties\PublishProfiles then putting the file name (doesn't need path or extension) in a terminal window opened in the command line below. For me it was "FolderProfile".

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.