WildernessLabs / NetMF_MonoDevelop_VS_Mac_Addin

.NET MicroFramework add-in for MonoDevelop/Xamarin Studio/Visual Studio Mac
MIT License
0 stars 3 forks source link

Some windows created projects not opening #12

Closed bryancostanich closed 6 years ago

bryancostanich commented 6 years ago

Something is a little strange. I created some new projects in the netduino.foundation solution in windows and tried to open them in mac, all but one worked. The one that failed is the Displays.SerialLCD solution folder, called SerialLCDBrightness

Failed with the following err:

screen shot 2018-02-04 at 9 31 48 pm

I think these are the lines that it's choking on in the .csproj file:

<Import Condition="EXISTS('$(NetMfTargetsBaseDir)$(TargetFrameworkVersion)\CSharp.Targets')" Project="$(NetMfTargetsBaseDir)$(TargetFrameworkVersion)\CSharp.Targets" />
<Import Condition="!EXISTS('$(NetMfTargetsBaseDir)$(TargetFrameworkVersion)\CSharp.Targets')" Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />

Here's an example of the same lines from a working project file:

<Import Project="$(MSBuildExtensionsPath32)\Microsoft\.NET Micro Framework\$(TargetFrameworkVersion)\CSharp.targets" Condition="Exists('$(MSBuildExtensionsPath32)\Microsoft\.NET Micro Framework\$(TargetFrameworkVersion)\CSharp.targets')" />
<Import Project="$([System.Environment]::GetFolderPath(SpecialFolder.LocalApplicationData))\.NETMicroFramework\xbuild\Microsoft\.NET Micro Framework\$(TargetFrameworkVersion)\CSharp.targets" Condition="!Exists('$(MSBuildExtensionsPath32)\Microsoft\.NET Micro Framework\$(TargetFrameworkVersion)\CSharp.targets')" />