[EDIT] Investigation Completed.
Two additional issues have been identified from the investigation.
#597
#630
We will leave this issue open and update it as they get fixed.
See down below for a workaround.
Hi there!
I'm trying to generate an xml serialization assembly but I keep on stranding with the following:
SGEN : warning SGEN1: Could not load file or assembly 'System.Runtime, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL'.
I've seen several posts pointing to edit the configuration file of Visual Studio but that was no solution in my case.
I tried both version 1.0.0 and 2.0.0, neither of them work, however version 1.0.0 doesn't generate any specific log output. Both versions end their logging with similar lines;
Assembly '[path to project]\obj\Debug\netcoreapp2.2\library.dll' does not contain any types that can be serialized using XmlSerializer.
1>%USERPROFILE%.nuget\packages\microsoft.xmlserializer.generator\2.0.0\build\Microsoft.XmlSerializer.Generator.targets(16,5): warning : SGEN: Fail to generate the serializer for library.dll. Please follow the instructions at https://go.microsoft.com/fwlink/?linkid=858594 and try again.
Interestingly enough, though, is that I got no issue on another device. This proofs that it is a local issue. I'd still like to be able to use the generator on my main device, what am I missing that this does not work?
[EDIT] Investigation Completed.
Two additional issues have been identified from the investigation.
#597
#630
We will leave this issue open and update it as they get fixed.
See down below for a workaround.
Hi there!
I'm trying to generate an xml serialization assembly but I keep on stranding with the following:
I've seen several posts pointing to edit the configuration file of Visual Studio but that was no solution in my case.
I tried both version 1.0.0 and 2.0.0, neither of them work, however version 1.0.0 doesn't generate any specific log output. Both versions end their logging with similar lines;
Interestingly enough, though, is that I got no issue on another device. This proofs that it is a local issue. I'd still like to be able to use the generator on my main device, what am I missing that this does not work?