winapi - Cannot install Microsoft.NETCore.UniversalWindowsPlatform -
seemed related this: nuget error install package microsoft.netcore.universalwindowsplatform not, because checkbox checked default in vs2017. running creators update way , up-to-date.
i have started new c# background iot project , got this:
when manually installing package in package console got this:
...
successfully installed 'microsoft.net.native.compiler 1.6.0' projectnamehere
install failed. rolling back...
package 'microsoft.netcore.jit.1.0.3' not exist in project
...
package 'microsoft.netcore.jit.1.0.3' not exist in folder
...
install-package : not install package 'microsoft.netcore.jit 1.0.3'. trying install package project targets '.netcore,version=v5.0', package not contain assembly references or content files compatible f ramework. more information, contact package author.
seems related https://connect.microsoft.com/visualstudio/feedback/details/1617801/newly-created-universal-app-projects-dont-work
but have no idea how fix it. have seen website suggesting remove project.json file, did did not resolve it.
i have closed vs2017 , modified installtion verify creators update sdk checked , installed.
i have lowered target version in project props, did not either.
edit manual install jit package did not work either:
could not install package 'microsoft.netcore.jit 1.1.1'. trying install package project targets '.netcore,version=v5.0', package not contain assembly references or content files compatible framework. more information, contact package author.
edit2 funny thing solution explorer tells me there project.json while there none in windows explorer:
i verified sdk installation hitting modify button of vs2017 installation , tried create new project afterwards got exact same issue again.
update: microsoft updated templates in github (https://github.com/ms-iot/samples/commit/2e2aa34ab514b8c0725a53263898a412e0a1be1c) didn't push updated templates package visual studio yet. changed answer accordingly.
temporary fix:
- replace in .csproj file
<itemgroup> <!-- reference entire .net framework , windows sdk automatically included --> <none include="project.json" /> </itemgroup> with
<propertygroup> <restoreprojectstyle>packagereference</restoreprojectstyle> </propertygroup> - add microsoft.netcore.universalwindowsplatform package
optional extra: add windows iot extension sdk via references dialog



Comments
Post a Comment