Tomáš Andrek (Senior Developer)
There is a known error in VS 2015 (Win 10):
The imported project "C:Program Files (x86)MSBuildMicrosoftWindowsXamlv14.08.2Microsoft.Windows.UI.Xaml.CSharp.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk. C:Program Files (x86)MSBuildMicrosoftWindowsXamlv14.0Microsoft.Windows.UI.Xaml.CSharp.targets
However strange it might look, the best workaround for the issue is (source: forums):
- Edit file: %ProgramFiles(x86)%MSBuildMicrosoftVisualStudiov14.0CodeSharingMicrosoft.CodeSharing.CSharp.targets
- Replace lines:
<Import Project="$(MSBuildExtensionsPath32)MicrosoftWindowsXamlv$(VisualStudioVersion)Microsoft.Windows.UI.Xaml.CSharp.targets" Condition="Exists('$(MSBuildExtensionsPath32)MicrosoftWindowsXamlv$(VisualStudioVersion)Microsoft.Windows.UI.Xaml.CSharp.targets')"/> <Import Project="$(MSBuildBinPath)Microsoft.CSharp.Targets" Condition="!Exists('$(MSBuildExtensionsPath32)MicrosoftWindowsXamlv$(VisualStudioVersion)Microsoft.Windows.UI.Xaml.CSharp.targets')" />
with
<Import Project="$(MSBuildExtensionsPath32)MicrosoftWindowsXamlv$(VisualStudioVersion)Microsoft.Windows.UI.Xaml.CSharp.targets" Condition="false"/> <Import Project="$(MSBuildBinPath)Microsoft.CSharp.Targets" Condition="true" />