Open adammarks opened 4 years ago
I looked at the repro and I think this is because of missing 'Additional Library Dependencies'. Can you check that you have those paths set, as necessary?
@mjrousos That was it, just missing the directory to find the C++/CLI assembly .lib files.
I still see a problem where on the first build I get all of the output above, but then on subsequent builds everything works fine and builds. Also once I add the runtimeconfig.json files, it runs!
@mjrousos The output during the first build was caused by me having multiple or different FrameworkReferences,
Even if I have just 1 FrameworkReference per C++/CLI project Microsoft.WindowsDesktop.App.WindowsForms in one and Microsoft.WindowsDesktop.App in another, as long as they are different, I get the output above during the first build.
To fix this I set everything to be "Microsoft.WindowsDesktop.App.WindowsForms" and I cannot get the output above during a rebuild.
@adammarks, glad it's working! The (many) warnings in output are a known issue. There shouldn't be any errors or runtime issues because of them, though. Let us know if you see anything like that.
@tgani-msft, it looks like the superfluous warnings when referencing WindowsDesktop SDKs are worse when two projects in the same solution use different SDKs (or possibly just when using the WPF SDK). It may be worth looking through @adammarks's output to make sure these are all the same sort of warnings we know about and are working on fixing.
@tgani-msft Here is the issue we were discussing
@mjrousos The output during the first build was caused by me having multiple or different FrameworkReferences,
Even if I have just 1 FrameworkReference per C++/CLI project Microsoft.WindowsDesktop.App.WindowsForms in one and Microsoft.WindowsDesktop.App in another, as long as they are different, I get the output above during the first build.
To fix this I set everything to be "Microsoft.WindowsDesktop.App.WindowsForms" and I cannot get the output above during a rebuild.
I was actually looking around for a fix today and found this, thanks a lot.
Output is
When I rebuild I additionally get this output,
Then when I build after the rebuild I get this :