I pulled down and installed the addon for VS2017. It looks like it loaded fine, the project types are available, creating a new Calculator demo appears to work, the MainPage.xaml comes up in the designer.
When I first tried to run it I got
C#/XAML for HTML5: SerializationAssembliesGenerator failed : System.Exception: Could not find the file sgen.exe: please contact support@cshtml5.com or ignore this error by adding the following line to your CSPROJ file: <CSharpXamlForHtml5SkipSerializationAssemblies>True</CSharpXamlForHtml5SkipSerializationAssemblies>
at DotNetForHtml5.Compiler.SerializationAssembliesGenerator.Execute()
I checked the CSPROJ file, and no sign of the "DotNetForHtml5.Compiler.SerializationAssembliesGenerator.Execute" line, so not really sure where to put this skip or what the impact would be for doing so.
sgen is readily available in my .Net framework folders, so I tried switching the .Net Framework version from 4.5 to 4.7.1. the error persisted. I closed and reopened VS, and no error! I ran the app and it worked until it called this method:
private void UpdateDisplay()
{
if (String.IsNullOrEmpty(Display))
{
DisplayBox.Text = "0";
}
else
{
DisplayBox.Text = Display;
}
}
The DisplayBox was null. I added if (DisplayBox != null ) to the line to at least make it run. It opened up, I could see the full screen and option to change layouts, but the displaybox itself remained empty. I hit the launch in browser button, and saw the same behavior. I killed the app, and now I'm seeing the could not find sgen.exe error again. It appears as though I can get it to build and run with this error, but I'm still stuck with either no content or a null reference error in UpdateDisplay.
Any thoughts?
Thanks,
-Rick