Open leonMSFT opened 2 years ago
First off, can you try the latest CsWin32 version (0.1.691-beta)?
If the problem still repros, can you try to repro in a command line build with the -bl
switch, and share your binlog file?
Hey, thanks for the reply 😄 Updating to the latest version didn't seem to do the trick. I've got a binlog of when I build the project using msbuild which doesn't repro, but I'm unsure how to get a binlog of when I'm trying to create an AppX. Also to be honest, I'm currently having trouble creating an AppX using the commandline (it seems so hard) but I'll see what kind of logs I can get from doing that.
I don't think a binlog of a successful build will help identify why the other build fails. If you can get a binlog of a failure, I'll be happy to take a look.
If you can repro it in the IDE, you might use the Project System Tools extension to collect a binlog of the in IDE build.
Ooh that extension is nifty! Re-ran the package publish with the extension enabled, and this is the binlog I saved from the failure. binlog.zip
Great. From your binlog I can see that the CsWin32 analyzer is provided to the compiler, so that's good. However no NativeMethods.txt file is being passed to the compiler. I can't tell why because the binlog oddly doesn't include msbuild evaluation data.
Is this still a problem for you, @leonMSFT ?
I do not know about the OP, but I am having this issue as well.
1>The type or namespace name 'Win32' does not exist in the namespace 'Windows' (are you missing an assembly reference?)
1>The type or namespace name 'Win32' does not exist in the namespace 'Windows' (are you missing an assembly reference?)
1>The type or namespace name 'Win32' does not exist in the namespace 'Windows' (are you missing an assembly reference?)
1>The type or namespace name 'Win32' does not exist in the namespace 'Windows' (are you missing an assembly reference?)
1>Unsafe code may only appear if compiling with /unsafe
1>Unsafe code may only appear if compiling with /unsafe
1>Unsafe code may only appear if compiling with /unsafe
1>Unsafe code may only appear if compiling with /unsafe
1>Unsafe code may only appear if compiling with /unsafe
1>The type or namespace name 'DISPLAYCONFIG_TOPOLOGY_ID' could not be found (are you missing a using directive or an assembly reference?)
1>The type or namespace name 'DISPLAYCONFIG_PATH_INFO' could not be found (are you missing a using directive or an assembly reference?)
1>The type or namespace name 'DISPLAYCONFIG_MODE_INFO' could not be found (are you missing a using directive or an assembly reference?)
Interestingly, if I manually add <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
to my CSPROJ file (which I thought CsWin32 did automatically), that eliminates the unsafe errors. However, the "namespace does not exist" errors persist.
1>The type or namespace name 'Win32' does not exist in the namespace 'Windows' (are you missing an assembly reference?)
1>The type or namespace name 'Win32' does not exist in the namespace 'Windows' (are you missing an assembly reference?)
1>The type or namespace name 'Win32' does not exist in the namespace 'Windows' (are you missing an assembly reference?)
1>The type or namespace name 'Win32' does not exist in the namespace 'Windows' (are you missing an assembly reference?)
1>The type or namespace name 'DISPLAYCONFIG_TOPOLOGY_ID' could not be found (are you missing a using directive or an assembly reference?)
1>The type or namespace name 'DISPLAYCONFIG_PATH_INFO' could not be found (are you missing a using directive or an assembly reference?)
1>The type or namespace name 'DISPLAYCONFIG_MODE_INFO' could not be found (are you missing a using directive or an assembly reference?)
CsWin32 0.2.164-beta
Target framework net7.0-windows10.0.20348.0
@skst Can you share your .binlog? See my notes above on how to collect it, although given the missing data from the last one I got, I'd prefer one produced at the command line with the /bl
switch if you can do that.
Ack. I knew you'd ask for that! Silly me. I hoped the OP's was enough. 🙂 I have not had very good luck using MSBuild on the command line, but I will work on it. In the meantime, I have attached the VS binlogs, in case they're useful. I have also enabled the high-fidelity logs in VS2022 and attached those. (If those are good enough, please let me know, so I can stop working on running MSBuild on the command line.)
Project System Tools documentation
binlog-vshighfidelity.zip binlog-vs.zip
Update MSBuild does not like /b1. Fortunately, this page and this page both point to MSBuild doc that says setting those env vars for VS will cause MSBuild to emit full debug logs. So, the above "high-fidelity log" ZIP should be what you need. Please let me know if it is not.
C:\OneDrive\Development\12noon\DisplayChanger
-> "C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\MSBuild.exe" /b1 DisplayChangers.sln
MSBuild version 17.4.1+9a89d02ff for .NET Framework
MSBUILD : error MSB1001: Unknown switch.
Full command line: '"C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\MSBuild.exe" /b1 DisplayChangers.sln'
Switches appended by response files:
'' came from 'C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\MSBuild.rsp'
Switch: /b1
@AArnott, I know you have a million other things on your plate. I am wondering, though, if those MSBuild logs are sufficient. Those web pages make it sound as if the "high-fidelity" log is the /b1 log. Please let me know if you need more information.
Thanks for understanding. And I'm sorry it's taking me so long to get to this. FWIW it is still on my short list of things to get to. TBH it's not likely to happen this week. I'm hopeful that I'll have time next week.
For now, I have a workaround. I copied all of the generated C# P/Invoke code (~5,000 lines in ~20 files) into a file I added to my project. Then, I disabled the NativeMethods.txt
file. Now, I can package my application for the Microsoft Store. It is not ideal, since I will not benefit from any updates to CsWin32, but at least I can publish my application now.
If it is not possible for MSBuild to create a package with CsWin32, perhaps this process could be automated?
I'm encountering the same issue. I can deploy the package locally without any problems, but when I try to create a package for the App Store, I encounter an error.
I'm getting the same error when trying to publisch my wpf application with this settings: net8.0-windows win-x64 framework dependend.
this ist the logfile produced:
22.04.2024 19:10:22
System.AggregateException: One or more errors occurred. ---> Microsoft.WebTools.Shared.Exceptions.WebToolsException: Publish has encountered an error. We were unable to determine the cause of the error. Check the output log for more details.
--- End of inner exception stack trace ---
---> (Inner Exception #0) Microsoft.WebTools.Shared.Exceptions.WebToolsException: Publish has encountered an error. We were unable to determine the cause of the error. Check the output log for more details. <---
Microsoft.WebTools.Shared.Exceptions.WebToolsException: Publish has encountered an error. We were unable to determine the cause of the error. Check the output log for more details.
===================
The minimal build output is more talkactive:
...
4>------ Publish started: Project: <APP>.Gui, Configuration: Release Any CPU ------
4>Determining projects to restore...
4>Restored D:\<MyProject>\<APP>.Common\<APP>.Common.csproj (in 870 ms).
4>Restored D:\<MyProject>\<APP>.Database\<APP>.Database.csproj (in 936 ms).
4>1 of 3 projects are up-to-date for restore.
4>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\Roslyn\csc.exe /noconfig /unsafe- /checked- /nowarn:1701,1702,CA1416,1701,1702,2008 /fullpaths /nostdlib+ /platform:x64 /errorreport:prompt /warn:8 /define:TRACE;RELEASE;NET;NET8_0;NETCOREAPP;WINDOWS;WINDOWS7_0;NET5_0_OR_GREATER;NET6_0_OR_GREATER;NET7_0_OR_GREATER;NET8_0_OR_GREATER;NETCOREAPP3_0_OR_GREATER;NETCOREAPP3_1_OR_GREATER;WINDOWS7_0_OR_GREATER /errorendlocation /preferreduilang:en-US /highentropyva+ /nullable:enable /reference:"C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\8.0.3\ref\net8.0\Accessibility.dll" /reference:D:\<MyProject>\<APP>.Common\bin\Release\net8.0-windows\<APP>.Common.dll /reference:D:\<MyProject>\<APP>.Database\bin\Release\net8.0-windows\<APP>.Database.dll /reference:C:\Users\<USER>\.nuget\packages\castle.core\5.1.1\lib\net6.0\Castle.Core.dll /reference:C:\Users\<USER>\.nuget\packages\controlzex\4.4.0\lib\netcoreapp3.1\ControlzEx.dll /reference:C:\Users\<USER>\.nuget\packages\mahapps.metro\2.4.10\lib\netcoreapp3.1\MahApps.Metro.dll /reference:C:\Users\<USER>\.nuget\packages\mahapps.metro.iconpacks.material\4.11.0\lib\net5.0-windows7.0\MahApps.Metro.IconPacks.Core.dll /reference:C:\Users\<USER>\.nuget\packages\mahapps.metro.iconpacks.fontawesome\4.11.0\lib\net5.0-windows7.0\MahApps.Metro.IconPacks.FontAwesome.dll /reference:C:\Users\<USER>\.nuget\packages\mahapps.metro.iconpacks.material\4.11.0\lib\net5.0-windows7.0\MahApps.Metro.IconPacks.Material.dll /reference:C:\Users\<USER>\.nuget\packages\materialdesigncolors\3.0.0\lib\net7.0\MaterialDesignColors.dll /reference:C:\Users\<USER>\.nuget\packages\materialdesignthemes\5.0.0\lib\net7.0\MaterialDesignThemes.Wpf.dll /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\Microsoft.CSharp.dll" /reference:C:\Users\<USER>\.nuget\packages\microsoft.data.sqlite.core\8.0.3\lib\net8.0\Microsoft.Data.Sqlite.dll /reference:C:\Users\<USER>\.nuget\packages\microsoft.entityframeworkcore.abstractions\8.0.3\lib\net8.0\Microsoft.EntityFrameworkCore.Abstractions.dll /reference:C:\Users\<USER>\.nuget\packages\microsoft.entityframeworkcore\8.0.3\lib\net8.0\Microsoft.EntityFrameworkCore.dll /reference:C:\Users\<USER>\.nuget\packages\microsoft.entityframeworkcore.proxies\8.0.3\lib\net8.0\Microsoft.EntityFrameworkCore.Proxies.dll /reference:C:\Users\<USER>\.nuget\packages\microsoft.entityframeworkcore.relational\8.0.3\lib\net8.0\Microsoft.EntityFrameworkCore.Relational.dll /reference:C:\Users\<USER>\.nuget\packages\microsoft.entityframeworkcore.sqlite.core\8.0.3\lib\net8.0\Microsoft.EntityFrameworkCore.Sqlite.dll /reference:C:\Users\<USER>\.nuget\packages\microsoft.extensions.caching.abstractions\8.0.0\lib\net8.0\Microsoft.Extensions.Caching.Abstractions.dll /reference:C:\Users\<USER>\.nuget\packages\microsoft.extensions.caching.memory\8.0.0\lib\net8.0\Microsoft.Extensions.Caching.Memory.dll /reference:C:\Users\<USER>\.nuget\packages\microsoft.extensions.configuration.abstractions\8.0.0\lib\net8.0\Microsoft.Extensions.Configuration.Abstractions.dll /reference:C:\Users\<USER>\.nuget\packages\microsoft.extensions.dependencyinjection.abstractions\8.0.1\lib\net8.0\Microsoft.Extensions.DependencyInjection.Abstractions.dll /reference:C:\Users\<USER>\.nuget\packages\microsoft.extensions.dependencyinjection\8.0.0\lib\net8.0\Microsoft.Extensions.DependencyInjection.dll /reference:C:\Users\<USER>\.nuget\packages\microsoft.extensions.dependencymodel\8.0.0\lib\net8.0\Microsoft.Extensions.DependencyModel.dll /reference:C:\Users\<USER>\.nuget\packages\microsoft.extensions.logging.abstractions\8.0.0\lib\net8.0\Microsoft.Extensions.Logging.Abstractions.dll /reference:C:\Users\<USER>\.nuget\packages\microsoft.extensions.logging\8.0.0\lib\net8.0\Microsoft.Extensions.Logging.dll /reference:C:\Users\<USER>\.nuget\packages\microsoft.extensions.options\8.0.0\lib\net8.0\Microsoft.Extensions.Options.dll /reference:C:\Users\<USER>\.nuget\packages\microsoft.extensions.primitives\8.0.0\lib\net8.0\Microsoft.Extensions.Primitives.dll /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\Microsoft.VisualBasic.Core.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\Microsoft.VisualBasic.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\Microsoft.Win32.Primitives.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\8.0.3\ref\net8.0\Microsoft.Win32.Registry.AccessControl.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\Microsoft.Win32.Registry.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\8.0.3\ref\net8.0\Microsoft.Win32.SystemEvents.dll" /reference:C:\Users\<USER>\.nuget\packages\microsoft.xaml.behaviors.wpf\1.1.39\lib\net5.0-windows7.0\Microsoft.Xaml.Behaviors.dll /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\mscorlib.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\netstandard.dll" /reference:C:\Users\<USER>\.nuget\packages\newtonsoft.json\13.0.3\lib\net6.0\Newtonsoft.Json.dll /reference:C:\Users\<USER>\.nuget\packages\nhotkey\3.0.0\lib\net6.0-windows7.0\NHotkey.dll /reference:C:\Users\<USER>\.nuget\packages\nhotkey.wpf\3.0.0\lib\net6.0-windows7.0\NHotkey.Wpf.dll /reference:"C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\8.0.3\ref\net8.0\PresentationCore.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\8.0.3\ref\net8.0\PresentationFramework.Aero.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\8.0.3\ref\net8.0\PresentationFramework.Aero2.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\8.0.3\ref\net8.0\PresentationFramework.AeroLite.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\8.0.3\ref\net8.0\PresentationFramework.Classic.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\8.0.3\ref\net8.0\PresentationFramework.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\8.0.3\ref\net8.0\PresentationFramework.Luna.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\8.0.3\ref\net8.0\PresentationFramework.Royale.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\8.0.3\ref\net8.0\PresentationUI.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\8.0.3\ref\net8.0\ReachFramework.dll" /reference:C:\Users\<USER>\.nuget\packages\sqlitepclraw.bundle_e_sqlite3\2.1.6\lib\netstandard2.0\SQLitePCLRaw.batteries_v2.dll /reference:C:\Users\<USER>\.nuget\packages\sqlitepclraw.core\2.1.6\lib\netstandard2.0\SQLitePCLRaw.core.dll /reference:C:\Users\<USER>\.nuget\packages\sqlitepclraw.provider.e_sqlite3\2.1.6\lib\net6.0-windows7.0\SQLitePCLRaw.provider.e_sqlite3.dll /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.AppContext.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Buffers.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\8.0.3\ref\net8.0\System.CodeDom.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Collections.Concurrent.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Collections.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Collections.Immutable.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Collections.NonGeneric.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Collections.Specialized.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.ComponentModel.Annotations.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.ComponentModel.DataAnnotations.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.ComponentModel.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.ComponentModel.EventBasedAsync.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.ComponentModel.Primitives.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.ComponentModel.TypeConverter.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\8.0.3\ref\net8.0\System.Configuration.ConfigurationManager.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Configuration.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Console.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Core.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Data.Common.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Data.DataSetExtensions.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Data.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Diagnostics.Contracts.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Diagnostics.Debug.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Diagnostics.DiagnosticSource.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\8.0.3\ref\net8.0\System.Diagnostics.EventLog.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Diagnostics.FileVersionInfo.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\8.0.3\ref\net8.0\System.Diagnostics.PerformanceCounter.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Diagnostics.Process.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Diagnostics.StackTrace.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Diagnostics.TextWriterTraceListener.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Diagnostics.Tools.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Diagnostics.TraceSource.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Diagnostics.Tracing.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\8.0.3\ref\net8.0\System.DirectoryServices.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Drawing.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Drawing.Primitives.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Dynamic.Runtime.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Formats.Asn1.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Formats.Tar.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Globalization.Calendars.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Globalization.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Globalization.Extensions.dll" /reference:C:\Users\<USER>\.nuget\packages\system.io.abstractions\21.0.2\lib\net8.0\System.IO.Abstractions.dll /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.IO.Compression.Brotli.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.IO.Compression.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.IO.Compression.FileSystem.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.IO.Compression.ZipFile.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.IO.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.IO.FileSystem.AccessControl.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.IO.FileSystem.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.IO.FileSystem.DriveInfo.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.IO.FileSystem.Primitives.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.IO.FileSystem.Watcher.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.IO.IsolatedStorage.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.IO.MemoryMappedFiles.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\8.0.3\ref\net8.0\System.IO.Packaging.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.IO.Pipes.AccessControl.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.IO.Pipes.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.IO.UnmanagedMemoryStream.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Linq.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Linq.Expressions.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Linq.Parallel.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Linq.Queryable.dll" /reference:C:\Users\<USER>\.nuget\packages\system.management\8.0.0\lib\net8.0\System.Management.dll /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Memory.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Net.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Net.Http.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Net.Http.Json.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Net.HttpListener.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Net.Mail.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Net.NameResolution.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Net.NetworkInformation.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Net.Ping.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Net.Primitives.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Net.Quic.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Net.Requests.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Net.Security.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Net.ServicePoint.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Net.Sockets.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Net.WebClient.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Net.WebHeaderCollection.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Net.WebProxy.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Net.WebSockets.Client.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Net.WebSockets.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Numerics.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Numerics.Vectors.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.ObjectModel.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\8.0.3\ref\net8.0\System.Printing.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Reflection.DispatchProxy.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Reflection.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Reflection.Emit.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Reflection.Emit.ILGeneration.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Reflection.Emit.Lightweight.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Reflection.Extensions.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Reflection.Metadata.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Reflection.Primitives.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Reflection.TypeExtensions.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\8.0.3\ref\net8.0\System.Resources.Extensions.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Resources.Reader.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Resources.ResourceManager.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Resources.Writer.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Runtime.CompilerServices.Unsafe.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Runtime.CompilerServices.VisualC.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Runtime.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Runtime.Extensions.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Runtime.Handles.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Runtime.InteropServices.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Runtime.InteropServices.JavaScript.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Runtime.InteropServices.RuntimeInformation.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Runtime.Intrinsics.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Runtime.Loader.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Runtime.Numerics.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Runtime.Serialization.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Runtime.Serialization.Formatters.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Runtime.Serialization.Json.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Runtime.Serialization.Primitives.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Runtime.Serialization.Xml.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Security.AccessControl.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Security.Claims.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Security.Cryptography.Algorithms.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Security.Cryptography.Cng.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Security.Cryptography.Csp.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Security.Cryptography.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Security.Cryptography.Encoding.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Security.Cryptography.OpenSsl.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\8.0.3\ref\net8.0\System.Security.Cryptography.Pkcs.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Security.Cryptography.Primitives.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\8.0.3\ref\net8.0\System.Security.Cryptography.ProtectedData.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Security.Cryptography.X509Certificates.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\8.0.3\ref\net8.0\System.Security.Cryptography.Xml.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Security.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\8.0.3\ref\net8.0\System.Security.Permissions.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Security.Principal.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Security.Principal.Windows.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Security.SecureString.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.ServiceModel.Web.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.ServiceProcess.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Text.Encoding.CodePages.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Text.Encoding.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Text.Encoding.Extensions.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Text.Encodings.Web.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Text.Json.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Text.RegularExpressions.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\8.0.3\ref\net8.0\System.Threading.AccessControl.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Threading.Channels.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Threading.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Threading.Overlapped.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Threading.Tasks.Dataflow.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Threading.Tasks.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Threading.Tasks.Extensions.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Threading.Tasks.Parallel.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Threading.Thread.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Threading.ThreadPool.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Threading.Timer.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Transactions.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Transactions.Local.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.ValueTuple.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Web.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Web.HttpUtility.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\8.0.3\ref\net8.0\System.Windows.Controls.Ribbon.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Windows.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\8.0.3\ref\net8.0\System.Windows.Extensions.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\8.0.3\ref\net8.0\System.Windows.Input.Manipulations.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\8.0.3\ref\net8.0\System.Windows.Presentation.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\8.0.3\ref\net8.0\System.Xaml.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Xml.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Xml.Linq.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Xml.ReaderWriter.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Xml.Serialization.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Xml.XDocument.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Xml.XmlDocument.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Xml.XmlSerializer.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Xml.XPath.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\ref\net8.0\System.Xml.XPath.XDocument.dll" /reference:C:\Users\<USER>\.nuget\packages\testableio.system.io.abstractions\21.0.2\lib\net8.0\TestableIO.System.IO.Abstractions.dll /reference:C:\Users\<USER>\.nuget\packages\testableio.system.io.abstractions.wrappers\21.0.2\lib\net8.0\TestableIO.System.IO.Abstractions.Wrappers.dll /reference:"C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\8.0.3\ref\net8.0\UIAutomationClient.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\8.0.3\ref\net8.0\UIAutomationClientSideProviders.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\8.0.3\ref\net8.0\UIAutomationProvider.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\8.0.3\ref\net8.0\UIAutomationTypes.dll" /reference:C:\Users\<USER>\.nuget\packages\unity.abstractions\5.11.7\lib\netcoreapp3.0\Unity.Abstractions.dll /reference:C:\Users\<USER>\.nuget\packages\unity.container\5.11.11\lib\netcoreapp3.0\Unity.Container.dll /reference:"C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\8.0.3\ref\net8.0\WindowsBase.dll" /debug- /debug:portable /filealign:512 /optimize+ /out:obj\Release\net8.0-windows\win-x64\AtcPostProcessor.Gui.dll /refout:obj\Release\net8.0-windows\win-x64\refint\AtcPostProcessor.Gui.dll /target:winexe /warnaserror- /utf8output /deterministic+ /langversion:10.0 /embed:D:\<MyProject>\<APP>.Gui\obj\Release\net8.0-windows\win-x64\Windows\About\AboutControl.g.cs /embed:D:\<MyProject>\<APP>.Gui\obj\Release\net8.0-windows\win-x64\Windows\Home\HomeView.g.cs /embed:D:\<MyProject>\<APP>.Gui\obj\Release\net8.0-windows\win-x64\Windows\MainWindow.g.cs /embed:D:\<MyProject>\<APP>.Gui\obj\Release\net8.0-windows\win-x64\Windows\Sequences\SequenceEditControl.g.cs /embed:D:\<MyProject>\<APP>.Gui\obj\Release\net8.0-windows\win-x64\Windows\Settings\SettingsView.g.cs /embed:D:\<MyProject>\<APP>.Gui\obj\Release\net8.0-windows\win-x64\Windows\SplashScreen.g.cs /embed:D:\<MyProject>\<APP>.Gui\obj\Release\net8.0-windows\win-x64\Windows\Steps\StepEditControl.g.cs /embed:D:\<MyProject>\<APP>.Gui\obj\Release\net8.0-windows\win-x64\Windows\Tasks\TasksView.g.cs /embed:D:\<MyProject>\<APP>.Gui\obj\Release\net8.0-windows\win-x64\Windows\Teach\TeachView.g.cs /embed:D:\<MyProject>\<APP>.Gui\obj\Release\net8.0-windows\win-x64\Windows\Teach\_PointTeachControl.g.cs /embed:D:\<MyProject>\<APP>.Gui\obj\Release\net8.0-windows\win-x64\App.g.cs /embed:D:\<MyProject>\<APP>.Gui\obj\Release\net8.0-windows\win-x64\GeneratedInternalTypeHelper.g.cs /embed:"obj\Release\net8.0-windows\win-x64\.NETCoreApp,Version=v8.0.AssemblyAttributes.cs" /embed:obj\Release\net8.0-windows\win-x64\<APP>.Gui_5nsy0oqy_wpftmp.GlobalUsings.g.cs /analyzerconfig:obj\Release\net8.0-windows\win-x64\<APP>.Gui_5nsy0oqy_wpftmp.GeneratedMSBuildEditorConfig.editorconfig /analyzerconfig:"C:\Program Files\dotnet\sdk\8.0.202\Sdks\Microsoft.NET.Sdk\analyzers\build\config\analysislevel_8_default.globalconfig" /analyzer:"C:\Program Files\dotnet\sdk\8.0.202\Sdks\Microsoft.NET.Sdk\targets\..\analyzers\Microsoft.CodeAnalysis.CSharp.NetAnalyzers.dll" /analyzer:"C:\Program Files\dotnet\sdk\8.0.202\Sdks\Microsoft.NET.Sdk\targets\..\analyzers\Microsoft.CodeAnalysis.NetAnalyzers.dll" /analyzer:C:\Users\<USER>\.nuget\packages\microsoft.codeanalysis.analyzers\3.3.3\analyzers\dotnet\cs\Microsoft.CodeAnalysis.Analyzers.dll /analyzer:C:\Users\<USER>\.nuget\packages\microsoft.codeanalysis.analyzers\3.3.3\analyzers\dotnet\cs\Microsoft.CodeAnalysis.CSharp.Analyzers.dll /analyzer:C:\Users\<USER>\.nuget\packages\microsoft.entityframeworkcore.analyzers\8.0.3\analyzers\dotnet\cs\Microsoft.EntityFrameworkCore.Analyzers.dll /analyzer:C:\Users\<USER>\.nuget\packages\microsoft.extensions.logging.abstractions\8.0.0\analyzers\dotnet\roslyn4.4\cs\Microsoft.Extensions.Logging.Generators.dll /analyzer:C:\Users\<USER>\.nuget\packages\microsoft.extensions.options\8.0.0\analyzers\dotnet\roslyn4.4\cs\Microsoft.Extensions.Options.SourceGeneration.dll /analyzer:C:\Users\<USER>\.nuget\packages\microsoft.windows.cswin32\0.3.49-beta\analyzers\cs\MessagePack.Annotations.dll /analyzer:C:\Users\<USER>\.nuget\packages\microsoft.windows.cswin32\0.3.49-beta\analyzers\cs\MessagePack.dll /analyzer:C:\Users\<USER>\.nuget\packages\microsoft.windows.cswin32\0.3.49-beta\analyzers\cs\Microsoft.Bcl.AsyncInterfaces.dll /analyzer:C:\Users\<USER>\.nuget\packages\microsoft.windows.cswin32\0.3.49-beta\analyzers\cs\Microsoft.Windows.CsWin32.dll /analyzer:C:\Users\<USER>\.nuget\packages\microsoft.windows.cswin32\0.3.49-beta\analyzers\cs\Microsoft.Windows.SDK.Win32Docs.dll /analyzer:C:\Users\<USER>\.nuget\packages\microsoft.windows.cswin32\0.3.49-beta\analyzers\cs\System.Text.Encodings.Web.dll /analyzer:C:\Users\<USER>\.nuget\packages\microsoft.windows.cswin32\0.3.49-beta\analyzers\cs\System.Text.Json.dll /analyzer:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\analyzers/dotnet/cs/Microsoft.Interop.ComInterfaceGenerator.dll" /analyzer:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\analyzers/dotnet/cs/Microsoft.Interop.JavaScript.JSImportGenerator.dll" /analyzer:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\analyzers/dotnet/cs/Microsoft.Interop.LibraryImportGenerator.dll" /analyzer:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\analyzers/dotnet/cs/Microsoft.Interop.SourceGeneration.dll" /analyzer:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\analyzers/dotnet/cs/System.Text.Json.SourceGeneration.dll" /analyzer:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.3\analyzers/dotnet/cs/System.Text.RegularExpressions.Generator.dll" /analyzer:C:\Users\<USER>\.nuget\packages\system.text.json\8.0.0\analyzers\dotnet\roslyn4.4\cs\System.Text.Json.SourceGeneration.dll App.xaml.cs AssemblyInfo.cs Communication\EstlcamCommunication.cs Infrastructure\BindingProxy.cs Infrastructure\CompositionRoot\DependencyResolver.cs Infrastructure\ItemHelper.cs Infrastructure\Startup\IAsyncStartupStep.cs Infrastructure\Startup\IStartupStep.cs Infrastructure\Startup\StartupService.cs "Infrastructure\Startup\Steps\1 EnsureDatabaseDirectory.cs" "Infrastructure\Startup\Steps\2 InitDatabase.cs" "Infrastructure\Startup\Steps\3 InitSettings.cs" Infrastructure\Startup\Steps\LoadStepData.cs Infrastructure\ToolFunctions.cs Infrastructure\Utilities\Automation.cs Infrastructure\Utilities\SendKeys.cs Windows\About\AboutControl.xaml.cs Windows\About\AboutViewModel.cs Windows\Home\HomeView.xaml.cs Windows\MainViewModel.cs Windows\MainWindow.xaml.cs Windows\Sequences\SequenceEditControl.xaml.cs Windows\Settings\SettingsView.xaml.cs Windows\SplashScreen.xaml.cs Windows\Steps\StepEditControl.xaml.cs Windows\Steps\StepsViewModel.cs Windows\Tasks\TasksView.xaml.cs Windows\Tasks\TasksViewModel.cs Windows\Teach\TeachView.xaml.cs Windows\Teach\TeachViewModel.cs Windows\Teach\_PointTeachControl.xaml.cs "..\Solution Items\SharedAssemblyVersionInfo.cs" "..\Solution Items\SharedAssemblyInfo.cs" D:\<MyProject>\<APP>.Gui\obj\Release\net8.0-windows\win-x64\Windows\About\AboutControl.g.cs D:\<MyProject>\<APP>.Gui\obj\Release\net8.0-windows\win-x64\Windows\Home\HomeView.g.cs D:\<MyProject>\<APP>.Gui\obj\Release\net8.0-windows\win-x64\Windows\MainWindow.g.cs D:\<MyProject>\<APP>.Gui\obj\Release\net8.0-windows\win-x64\Windows\Sequences\SequenceEditControl.g.cs D:\<MyProject>\<APP>.Gui\obj\Release\net8.0-windows\win-x64\Windows\Settings\SettingsView.g.cs D:\<MyProject>\<APP>.Gui\obj\Release\net8.0-windows\win-x64\Windows\SplashScreen.g.cs D:\<MyProject>\<APP>.Gui\obj\Release\net8.0-windows\win-x64\Windows\Steps\StepEditControl.g.cs D:\<MyProject>\<APP>.Gui\obj\Release\net8.0-windows\win-x64\Windows\Tasks\TasksView.g.cs D:\<MyProject>\<APP>.Gui\obj\Release\net8.0-windows\win-x64\Windows\Teach\TeachView.g.cs D:\<MyProject>\<APP>.Gui\obj\Release\net8.0-windows\win-x64\Windows\Teach\_PointTeachControl.g.cs D:\<MyProject>\<APP>.Gui\obj\Release\net8.0-windows\win-x64\App.g.cs D:\<MyProject>\<APP>.Gui\obj\Release\net8.0-windows\win-x64\GeneratedInternalTypeHelper.g.cs "obj\Release\net8.0-windows\win-x64\.NETCoreApp,Version=v8.0.AssemblyAttributes.cs" obj\Release\net8.0-windows\win-x64\<APP>.Gui_5nsy0oqy_wpftmp.GlobalUsings.g.cs /warnaserror+:NU1605,SYSLIB0011
4>The type or namespace name 'Windows' could not be found (are you missing a using directive or an assembly reference?)
4>The type or namespace name 'Windows' could not be found (are you missing a using directive or an assembly reference?)
4>The type or namespace name 'Windows' could not be found (are you missing a using directive or an assembly reference?)
4>The type or namespace name 'HWND' could not be found (are you missing a using directive or an assembly reference?)
4>The type or namespace name 'HWND' could not be found (are you missing a using directive or an assembly reference?)
4>The type or namespace name 'HWND' could not be found (are you missing a using directive or an assembly reference?)
4>The type or namespace name 'HWND' could not be found (are you missing a using directive or an assembly reference?)
4>The type or namespace name 'HWND' could not be found (are you missing a using directive or an assembly reference?)
4>The type or namespace name 'HWND' could not be found (are you missing a using directive or an assembly reference?)
========== Build: 3 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
========== Build completed at 19:10 and took 11,271 seconds ==========
========== Publish: 0 succeeded, 1 failed, 0 skipped ==========
========== Publish completed at 19:10 and took 11,272 seconds ==========
> Build started at 19:10 and took 8.863 seconds
Seems the runtime generated Win32 pinvoke classes / files are not found.. ps: sorry for the big and long posting.
@bennybread I tried reproducing your WPF publish issue, but it worked properly. Here is the solution I created: WpfApp2.zip
The command I used was dotnet publish -r win-x64 --no-self-contained
.
I also tried the Publish command within VS. I set up a Publish to Folder profile. No build failures. Can you please change my repro project or give me the alternate instructions to get it to fail so I can investigate further?
@skst said:
MSBuild does not like /b1.
No, not /b1
... It must be /bl
(that is, /BL
).
Ok, I have a repro now, by adding an app packaging project to the solution: WpfApp2.zip
Tracking internally for the .wapproj tools bug in devdiv-2056588.
@AArnott I tried your sample project and repro'd the issue. However, I found that if I set the publish profile in the wapproj project reference I no longer get the error.
@mslukewest, thanks for that. Is there a workaround for folks publishing to actual appx packages for the store?
@AArnott Yes, this is that workaround. The publish profile gets used when creating appx/msix packages, either for the store or for sideloading.
@leonmsft and @bennybread can you confirm this resolves your issue?
I just updated to the latest version 03.106 and I have to say that it still does not work to publish (for folder):
4>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\Roslyn\csc.exe /noconfig /unsafe- /checked- /nowarn:1701,1702,CA1416,1701,1702,2008 /fullpaths /nostdlib+ /platform:x64 /errorreport:prompt /warn:8 /define:TRACE;RELEASE;NET;NET8_0;NETCOREAPP;WINDOWS;WINDOWS7_0;NET5_0_OR_GREATER;NET6_0_OR_GREATER;NET7_0_OR_GREATER;NET8_0_OR_GREATER;NETCOREAPP3_0_OR_GREATER;NETCOREAPP3_1_OR_GREATER;WINDOWS7_0_OR_GREATER /errorendlocation /preferreduilang:en-US /highentropyva+ /nullable:enable /reference:"C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\8.0.4\ref\net8.0\Accessibility.dll" /reference:D:\_Projekte\<APP>.Common\bin\Release\net8.0-windows\<APP>.Common.dll /reference:D:\_Projekte\<APP>.Database\bin\Release\net8.0-windows\<APP>.Database.dll /reference:C:\Users\<USER>\.nuget\packages\castle.core\5.1.1\lib\net6.0\Castle.Core.dll /reference:C:\Users\<USER>\.nuget\packages\controlzex\4.4.0\lib\netcoreapp3.1\ControlzEx.dll /reference:C:\Users\<USER>\.nuget\packages\excss\4.2.3\lib\net7.0\ExCSS.dll /reference:C:\Users\<USER>\.nuget\packages\flagsiso\1.1.0\lib\net6.0\FlagsISO.dll /reference:C:\Users\<USER>\.nuget\packages\gong-wpf-dragdrop\3.2.1\lib\net6.0-windows7.0\GongSolutions.WPF.DragDrop.dll /reference:C:\Users\<USER>\.nuget\packages\avalonedit\6.3.0.90\lib\net7.0-windows7.0\ICSharpCode.AvalonEdit.dll /reference:C:\Users\<USER>\.nuget\packages\mahapps.metro\2.4.10\lib\netcoreapp3.1\MahApps.Metro.dll /reference:C:\Users\<USER>\.nuget\packages\mahapps.metro.iconpacks.material\4.11.0\lib\net5.0-windows7.0\MahApps.Metro.IconPacks.Core.dll /reference:C:\Users\<USER>\.nuget\packages\mahapps.metro.iconpacks.fontawesome\4.11.0\lib\net5.0-windows7.0\MahApps.Metro.IconPacks.FontAwesome.dll /reference:C:\Users\<USER>\.nuget\packages\mahapps.metro.iconpacks.material\4.11.0\lib\net5.0-windows7.0\MahApps.Metro.IconPacks.Material.dll /reference:C:\Users\<USER>\.nuget\packages\materialdesigncolors\3.0.0\lib\net7.0\MaterialDesignColors.dll /reference:C:\Users\<USER>\.nuget\packages\materialdesignthemes\5.0.0\lib\net7.0\MaterialDesignThemes.Wpf.dll /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.4\ref\net8.0\Microsoft.CSharp.dll" /reference:C:\Users\<USER>\.nuget\packages\microsoft.data.sqlite.core\8.0.5\lib\net8.0\Microsoft.Data.Sqlite.dll /reference:C:\Users\<USER>\.nuget\packages\microsoft.entityframeworkcore.abstractions\8.0.5\lib\net8.0\Microsoft.EntityFrameworkCore.Abstractions.dll /reference:C:\Users\<USER>\.nuget\packages\microsoft.entityframeworkcore\8.0.5\lib\net8.0\Microsoft.EntityFrameworkCore.dll /reference:C:\Users\<USER>\.nuget\packages\microsoft.entityframeworkcore.proxies\8.0.5\lib\net8.0\Microsoft.EntityFrameworkCore.Proxies.dll /reference:C:\Users\<USER>\.nuget\packages\microsoft.entityframeworkcore.relational\8.0.5\lib\net8.0\Microsoft.EntityFrameworkCore.Relational.dll /reference:C:\Users\<USER>\.nuget\packages\microsoft.entityframeworkcore.sqlite.core\8.0.5\lib\net8.0\Microsoft.EntityFrameworkCore.Sqlite.dll /reference:C:\Users\<USER>\.nuget\packages\microsoft.extensions.caching.abstractions\8.0.0\lib\net8.0\Microsoft.Extensions.Caching.Abstractions.dll /reference:C:\Users\<USER>\.nuget\packages\microsoft.extensions.caching.memory\8.0.0\lib\net8.0\Microsoft.Extensions.Caching.Memory.dll /reference:C:\Users\<USER>\.nuget\packages\microsoft.extensions.configuration.abstractions\8.0.0\lib\net8.0\Microsoft.Extensions.Configuration.Abstractions.dll /reference:C:\Users\<USER>\.nuget\packages\microsoft.extensions.dependencyinjection.abstractions\8.0.1\lib\net8.0\Microsoft.Extensions.DependencyInjection.Abstractions.dll /reference:C:\Users\<USER>\.nuget\packages\microsoft.extensions.dependencyinjection\8.0.0\lib\net8.0\Microsoft.Extensions.DependencyInjection.dll /reference:C:\Users\<USER>\.nuget\packages\microsoft.extensions.dependencymodel\8.0.0\lib\net8.0\Microsoft.Extensions.DependencyModel.dll /reference:C:\Users\<USER>\.nuget\packages\microsoft.extensions.logging.abstractions\8.0.0\lib\net8.0\Microsoft.Extensions.Logging.Abstractions.dll /reference:C:\Users\<USER>\.nuget\packages\microsoft.extensions.logging\8.0.0\lib\net8.0\Microsoft.Extensions.Logging.dll /reference:C:\Users\<USER>\.nuget\packages\microsoft.extensions.options\8.0.0\lib\net8.0\Microsoft.Extensions.Options.dll /reference:C:\Users\<USER>\.nuget\packages\microsoft.extensions.primitives\8.0.0\lib\net8.0\Microsoft.Extensions.Primitives.dll /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.4\ref\net8.0\Microsoft.VisualBasic.Core.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\8.0.4\ref\net8.0\Microsoft.VisualBasic.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\8.0.4\ref\net8.0\Microsoft.VisualBasic.Forms.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.4\ref\net8.0\Microsoft.Win32.Primitives.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\8.0.4\ref\net8.0\Microsoft.Win32.Registry.AccessControl.dll"
...
D:\_Projekte\<APP>.Gui\obj\Release\net8.0-windows\win-x64\Windows\Teach\TeachView.g.cs D:\_Projekte\<APP>.Gui\obj\Release\net8.0-windows\win-x64\Windows\Teach\_PointTeachControl.g.cs D:\_Projekte\<APP>.Gui\obj\Release\net8.0-windows\win-x64\Windows\Settings\SettingsView.g.cs D:\_Projekte\<APP>.Gui\obj\Release\net8.0-windows\win-x64\App.g.cs D:\_Projekte\<APP>.Gui\obj\Release\net8.0-windows\win-x64\GeneratedInternalTypeHelper.g.cs "obj\Release\net8.0-windows\win-x64\.NETCoreApp,Version=v8.0.AssemblyAttributes.cs" obj\Release\net8.0-windows\win-x64\<APP>.Gui_dompuqz4_wpftmp.GlobalUsings.g.cs /warnaserror+:NU1605,SYSLIB0011
4>'HWND' is inaccessible due to its protection level
4>'HWND' is inaccessible due to its protection level
4>'HWND' is inaccessible due to its protection level
4>'HWND' is inaccessible due to its protection level
4>'HWND' is inaccessible due to its protection level
4>'HWND' is inaccessible due to its protection level
========== Build: 3 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
This is the code which was generated for HWND: ( It looks correct to me)
[DebuggerDisplay("{Value}")]
[global::System.CodeDom.Compiler.GeneratedCode("Microsoft.Windows.CsWin32", "0.3.106+a37a0b4b70")]
internal readonly partial struct HWND
: IEquatable<HWND>
{
internal readonly IntPtr Value;
internal HWND(IntPtr value) => this.Value = value;
...
I tried twice, even deleted bin and obj folders, rebuild all, then tried to publish.
I will try to set up an mimimal example to reproduce the error.
@AArnott I managed to reproduce my problem in a small sample project: WpfCsWin32PublishApp
Maybe it has something todo with my use of GetWindowText which I manually DllImport ?
Thanks for reporting back, @bennybread. But it wasn't the latest CsWin32 that I wanted you to try... I wanted you to try @MSLukeWest's workaround: https://github.com/microsoft/CsWin32/issues/560#issuecomment-2116120757
@AArnott : I'm not trying to publish as an appx package, I'm just trying to publish to a folder. I don't have a wapproj. I don't have universal paltform installed, but I'll give it a try..
I have updated my sample https://github.com/BennyBread/WpfCsWin32PublishApp
and included a wapproj but still it's not possible to publish.
Maybe I am doing something wrong.
I hope we can solve this problem. I need to publish ready to run (maybe single exe) soon.
@bennybread Sorry, I didn't realize. If you're not trying to publish an AppX, please open a separate issue to track. The bug title and description are specifically focused on AppX packages and it's too hard to juggle distinct scenarios in a single bug.
The suggested workaround does not work for me, (and doesn't really make sense for multi-arch builds anyway?).
Update: It works if you select only one arch (matching the publishing profile). So I suppose we can manually add a bunch of rules to the publishing profile to workaround this? Trying it now.
Workaround for folks dealing with multiple architectures:
Right-click the application project, click Publish, and create a folder publishing profile for each architecture. (You can also just create the .pubxml files manually.) Here's what one should look like:
<?xml version="1.0" encoding="utf-8"?>
<Project>
<PropertyGroup>
<Configuration>Release</Configuration>
<Platform>ARM64</Platform>
<PublishDir>..\Build\Release\arm64\net8.0-windows10.0.19041.0\win-arm64\publish\</PublishDir>
<PublishProtocol>FileSystem</PublishProtocol>
<_TargetId>Folder</_TargetId>
</PropertyGroup>
</Project>
In Solution Explorer, select the packaging project. It will appear in the editor automatically. Associate the project(s) with all available publishing profiles:
<ItemGroup>
<ProjectReference Include="..\Solution\Project.csproj">
+ <PublishProfile Condition="'$(Configuration)|$(Platform)'=='Release|x86'">Properties\PublishProfiles\x86.pubxml</PublishProfile>
+ <PublishProfile Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Properties\PublishProfiles\x64.pubxml</PublishProfile>
+ <PublishProfile Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'">Properties\PublishProfiles\Arm64.pubxml</PublishProfile>
</ProjectReference>
</ItemGroup>
The Project > Publish > Create App Packages wizard should now work correctly for any architecture that also has an associated publish profile. (Make sure you select the right targets and configurations!)
Actual behavior
Hi all! I'm currently attempting to create an AppX package for my app. I've created a packaging project in Visual Studio to include two projects in it, one of which is using CsWin32. I'm able to build them both fine and able to run them in the debugger without errors, but when I try to create an App package through my packaging project, I get these errors which I assume are related to CsWin32.
Wondering if this has been seen before, and if so what am I missing in perhaps my manifest or some csproj configuration?
Expected behavior
I haven't hit these errors when building the project on its own and F5 debugging. I didn't expect it to appear when attempting to create an AppX package with the project in it.
Repro steps
NativeMethods.txt
content:EVENT_SYSTEM_FOREGROUND WINEVENT_OUTOFCONTEXT