-
-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
conversion to elmish 2.0 #32
Conversation
The good - everything builds at this point, the bad - WPF + SDK still don't play nice together and something is still borked - all the samples crash at runtime. I only tried it on small headless VM, so maybe someone else could track down the reason. |
Do the samples still work in Windows? |
see the above "samples crash" ;)
Good point, I think we can still build for 4.5 if needed, but it's not in the current version of the Elmish package (461 is though). |
Come to think, the whole NetStandard was introduced to address multi-targeting mess, so probably should just use EDIT: scratch that, FSharp.Core doesn't support netstandard1.1, so net45 + netstandard1.6 + netstandard2.0 it is. |
No longer needed |
Thanks! :) |
@et1975 Having trouble with the build script, or specifically, building XAML projects from the command line. When converting the XAML projects to the new project format, did you manage to get them to compile from the command line? When I do <LanguageTargets>$(MSBuildExtensionsPath)\$(VisualStudioVersion)\Bin\Microsoft.CSharp.targets</LanguageTargets> In the project file, I get the following error:
I guess this is because <LanguageTargets Condition="Exists('$(MSBuildProjectDirectory)\$(AssemblyName).csproj') AND Exists('$(MSBuildExtensionsPath)\$(VisualStudioVersion)\Bin\Microsoft.CSharp.targets')">$(MSBuildExtensionsPath)\$(VisualStudioVersion)\Bin\Microsoft.CSharp.targets</LanguageTargets> then I instead get another error:
Which I suppose is because the targets aren't included at all (since the condition fails). Did you manage to get the XAML projects to compile from the command line / build script? |
Yes, it compiled on my windows VM, but this looks familiar, I think you need something like this cludge to make sure dotnet finds the framework targets and XAML codegen kicks in. This is the issue, I believe: dotnet/project-system#1467 |
Thanks! I've had a look at that issue previously, but didn't find a solution for making it compile. As for the file you linked to, I don't know what do to with it. I tried saving it in the project folder of one of the view projects, but it still fails with the same errors. For now, I have simply excluded the samples from the build target. |
using netstandard2.0 Elmish package dependency.