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
MSBuild.Sdk.Extras does not seem to work in VS2017 for Mac #9
Comments
/cc @mhutch. Not sure about VSfM but if the appropriate set of targets are installed, it should work.... it's just including the things it'd normally do. |
@mrward might also have some good ideas. In https://bugzilla.xamarin.com/show_bug.cgi?id=57307, he responded with Currently the SDK style projects only support .NETCoreApp, .NETStandard and .NETFramework as the target frameworks.
I wonder though if MSBuildSdkExtras with some tweaks could get this to work. Or maybe there is some check in VSfM that could be modified so that the import can work. |
I suspect the load failed error is because currently VS for Mac is not allowing other target frameworks for sdk style projects. I should be able to fix that part. |
@mrward it would be good to get some validation that project using this |
Let me know if I can help in any way. It would be a lifesaver for me since I just switched our libraries to SDK-style. |
@tofutim you could always use a PC, I hear Windows 10 has a great CLI now with bash ;) /ducks and runs |
@mrward Curious to see if you were able to fix the load failed error on your end. If ETA is not too far away we might leave the sln as is. |
@onovotny Just got word on some progress from @mrward Would it be possible to get a fallback VSfM directory integrated into MSBuild.Sdk.Extras?
|
This is now fixed with the latest beta on NuGet. Details on what you need here: https://oren.codes/2017/08/29/use-all-tfms-with-sdk-style-projects-in-visual-studio-for-mac/ |
Following the directions in the blog allowed me to convert a xamarin android 'library' .csproj to sdk-style and have it working in Mac OS X - both VSfM and CLI (this unblocked adoption on multi-platform projects). However, I've been unsuccessful at doing the same for the xamarin android 'app' .csproj. I'd like to know if this is just not possible in msbuild-land and/or it's a considered scenario for MSBuildSdkExtras. |
It's not currently possible to have the app projects as SDK style since they need specific support for deployment and debugging. They can use PackageReference though. |
Is that still current? (If so, is that something that needs fixing on the IDE side?) I got surprisingly far with a Xamarin.Mac20 + VS4Mac project — an app bundle does get generated, and I can manually launch that. However, debugging does not work; apparently, Mono doesn't know where to find the references (even though it does copy them to the app bundle). |
I just opened my solution in VS2017 for Mac. Project targeting Xamarin.Mac20 refuses to load. Any tips?
Error is Load failed: Project does not support framework 'Xamarin.Mac, Version=v2.0'
The text was updated successfully, but these errors were encountered: