Unable to create new project (fresh install fail)


#1

Xenko has been on my radar for a while and decided to take the plunge yesterday.

Hasn’t worked out too well so far.

I’ve had a few iterations of uninstalling xenko and visual studio community 2017 and reinstalling to no avail.

Here’s the error logged:
Verbose: Loading Assets from Package [Xenko.xkpkg]
Verbose: Loading Assets from Package [bball.xkpkg]
Verbose: Generating bball.Game…
Verbose: Generating bball.Windows…
Verbose: Loading Assets from Package [bball.xkpkg]
Verbose: Compiling game assemblies…
Verbose: Restoring packages for C:\Users\Shva\Documents\Xenko Projects\bball\bball\bball.Game\project.json…
Verbose: Unable to resolve ‘Microsoft.NETCore.Portable.Compatibility (>= 1.0.1)’ for ‘.NETStandard,Version=v1.4’.
Verbose: Unable to resolve ‘NETStandard.Library (>= 1.6.0)’ for ‘.NETStandard,Version=v1.4’.
Verbose: Committing restore…
Verbose: Writing lock file to disk. Path: C:\Users\Shva\Documents\Xenko Projects\bball\bball\bball.Game\project.lock.json
Verbose: C:\Users\Shva\Documents\Xenko Projects\bball\bball\bball.Game\project.json
Verbose: Restore failed in 181ms.
Error: Errors in C:\Users\Shva\Documents\Xenko Projects\bball\bball\bball.Game\project.json
Error: Unable to resolve ‘Microsoft.NETCore.Portable.Compatibility (>= 1.0.1)’ for ‘.NETStandard,Version=v1.4’.
Error: Unable to resolve ‘NETStandard.Library (>= 1.6.0)’ for ‘.NETStandard,Version=v1.4’.
Verbose: NuGet Config files used:
Verbose: C:\Users\Shva\AppData\Roaming\NuGet\NuGet.Config
[Properties\AssemblyInfo.cs(7,12)]: Error: The type or namespace name ‘AssemblyTitleAttribute’ could not be found (are you missing a using directive or an assembly reference?)
[Properties\AssemblyInfo.cs(7,12)]: Error: The type or namespace name ‘AssemblyTitle’ could not be found (are you missing a using directive or an assembly reference?)
[Properties\AssemblyInfo.cs(8,12)]: Error: The type or namespace name ‘AssemblyDescriptionAttribute’ could not be found (are you missing a using directive or an assembly reference?)
[Properties\AssemblyInfo.cs(8,12)]: Error: The type or namespace name ‘AssemblyDescription’ could not be found (are you missing a using directive or an assembly reference?)
[Properties\AssemblyInfo.cs(9,12)]: Error: The type or namespace name ‘AssemblyConfigurationAttribute’ could not be found (are you missing a using directive or an assembly reference?)
[Properties\AssemblyInfo.cs(9,12)]: Error: The type or namespace name ‘AssemblyConfiguration’ could not be found (are you missing a using directive or an assembly reference?)
[Properties\AssemblyInfo.cs(10,12)]: Error: The type or namespace name ‘AssemblyCompanyAttribute’ could not be found (are you missing a using directive or an assembly reference?)
[Properties\AssemblyInfo.cs(10,12)]: Error: The type or namespace name ‘AssemblyCompany’ could not be found (are you missing a using directive or an assembly reference?)
[Properties\AssemblyInfo.cs(11,12)]: Error: The type or namespace name ‘AssemblyProductAttribute’ could not be found (are you missing a using directive or an assembly reference?)
[Properties\AssemblyInfo.cs(11,12)]: Error: The type or namespace name ‘AssemblyProduct’ could not be found (are you missing a using directive or an assembly reference?)
[Properties\AssemblyInfo.cs(12,12)]: Error: The type or namespace name ‘AssemblyCopyrightAttribute’ could not be found (are you missing a using directive or an assembly reference?)
[Properties\AssemblyInfo.cs(12,12)]: Error: The type or namespace name ‘AssemblyCopyright’ could not be found (are you missing a using directive or an assembly reference?)
[Properties\AssemblyInfo.cs(13,12)]: Error: The type or namespace name ‘AssemblyTrademarkAttribute’ could not be found (are you missing a using directive or an assembly reference?)
[Properties\AssemblyInfo.cs(13,12)]: Error: The type or namespace name ‘AssemblyTrademark’ could not be found (are you missing a using directive or an assembly reference?)
[Properties\AssemblyInfo.cs(14,12)]: Error: The type or namespace name ‘AssemblyCultureAttribute’ could not be found (are you missing a using directive or an assembly reference?)
[Properties\AssemblyInfo.cs(14,12)]: Error: The type or namespace name ‘AssemblyCulture’ could not be found (are you missing a using directive or an assembly reference?)
[Properties\AssemblyInfo.cs(15,12)]: Error: The type or namespace name ‘NeutralResourcesLanguageAttribute’ could not be found (are you missing a using directive or an assembly reference?)
[Properties\AssemblyInfo.cs(15,12)]: Error: The type or namespace name ‘NeutralResourcesLanguage’ could not be found (are you missing a using directive or an assembly reference?)
[Properties\AssemblyInfo.cs(27,12)]: Error: The type or namespace name ‘AssemblyVersionAttribute’ could not be found (are you missing a using directive or an assembly reference?)
[Properties\AssemblyInfo.cs(27,12)]: Error: The type or namespace name ‘AssemblyVersion’ could not be found (are you missing a using directive or an assembly reference?)
[Properties\AssemblyInfo.cs(28,12)]: Error: The type or namespace name ‘AssemblyFileVersionAttribute’ could not be found (are you missing a using directive or an assembly reference?)
[Properties\AssemblyInfo.cs(28,12)]: Error: The type or namespace name ‘AssemblyFileVersion’ could not be found (are you missing a using directive or an assembly reference?)
[C:\Users\Shva\AppData\Local\Temp.NETPortable,Version=v5.0.AssemblyAttributes.cs(4,20)]: Error: The type or namespace name ‘System’ could not be found in the global namespace (are you missing an assembly reference?)
[Properties\AssemblyInfo.cs(7,26)]: Error: Predefined type ‘System.String’ is not defined or imported
[Properties\AssemblyInfo.cs(8,32)]: Error: Predefined type ‘System.String’ is not defined or imported
[Properties\AssemblyInfo.cs(9,34)]: Error: Predefined type ‘System.String’ is not defined or imported
[Properties\AssemblyInfo.cs(10,28)]: Error: Predefined type ‘System.String’ is not defined or imported
[Properties\AssemblyInfo.cs(11,28)]: Error: Predefined type ‘System.String’ is not defined or imported
[Properties\AssemblyInfo.cs(12,30)]: Error: Predefined type ‘System.String’ is not defined or imported
[Properties\AssemblyInfo.cs(13,30)]: Error: Predefined type ‘System.String’ is not defined or imported
[Properties\AssemblyInfo.cs(14,28)]: Error: Predefined type ‘System.String’ is not defined or imported
[Properties\AssemblyInfo.cs(15,37)]: Error: Predefined type ‘System.String’ is not defined or imported
[Properties\AssemblyInfo.cs(27,28)]: Error: Predefined type ‘System.String’ is not defined or imported
[Properties\AssemblyInfo.cs(28,32)]: Error: Predefined type ‘System.String’ is not defined or imported
[C:\Users\Shva\AppData\Local\Temp.NETPortable,Version=v5.0.AssemblyAttributes.cs(4,71)]: Error: Predefined type ‘System.String’ is not defined or imported
[C:\Users\Shva\AppData\Local\Temp.NETPortable,Version=v5.0.AssemblyAttributes.cs(4,100)]: Error: The type or namespace name ‘FrameworkDisplayName’ could not be found (are you missing a using directive or an assembly reference?)
[C:\Users\Shva\AppData\Local\Temp.NETPortable,Version=v5.0.AssemblyAttributes.cs(4,123)]: Error: Predefined type ‘System.String’ is not defined or imported
[BasicCameraController.cs(1,7)]: Error: The type or namespace name ‘System’ could not be found (are you missing a using directive or an assembly reference?)
[Properties\AssemblyInfo.cs(1,7)]: Error: The type or namespace name ‘System’ could not be found (are you missing a using directive or an assembly reference?)
[Properties\AssemblyInfo.cs(2,7)]: Error: The type or namespace name ‘System’ could not be found (are you missing a using directive or an assembly reference?)
[C:\Users\Shva\AppData\Local\Temp.NETPortable,Version=v5.0.AssemblyAttributes.cs(2,7)]: Error: The type or namespace name ‘System’ could not be found (are you missing a using directive or an assembly reference?)
[C:\Users\Shva\AppData\Local\Temp.NETPortable,Version=v5.0.AssemblyAttributes.cs(3,7)]: Error: The type or namespace name ‘System’ could not be found (are you missing a using directive or an assembly reference?)
[BasicCameraController.cs(16,42)]: Error: The type ‘Object’ is defined in an assembly that is not referenced. You must add a reference to assembly ‘mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089’.
[BasicCameraController.cs(18,23)]: Error: Predefined type ‘System.Single’ is not defined or imported
[BasicCameraController.cs(25,16)]: Error: The type ‘Object’ is defined in an assembly that is not referenced. You must add a reference to assembly ‘mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089’.
[BasicCameraController.cs(25,16)]: Error: Predefined type ‘System.Object’ is not defined or imported
[BasicCameraController.cs(25,16)]: Error: The type ‘ValueType’ is defined in an assembly that is not referenced. You must add a reference to assembly ‘mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089’.
[BasicCameraController.cs(25,53)]: Error: Predefined type ‘System.Void’ is not defined or imported
[BasicCameraController.cs(27,16)]: Error: The type ‘Object’ is defined in an assembly that is not referenced. You must add a reference to assembly ‘mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089’.
[BasicCameraController.cs(27,16)]: Error: Predefined type ‘System.Object’ is not defined or imported
[BasicCameraController.cs(27,16)]: Error: The type ‘ValueType’ is defined in an assembly that is not referenced. You must add a reference to assembly ‘mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089’.
[BasicCameraController.cs(27,50)]: Error: Predefined type ‘System.Void’ is not defined or imported
[BasicCameraController.cs(29,16)]: Error: Predefined type ‘System.Single’ is not defined or imported
[BasicCameraController.cs(29,41)]: Error: Predefined type ‘System.Void’ is not defined or imported
[BasicCameraController.cs(31,16)]: Error: The type ‘Object’ is defined in an assembly that is not referenced. You must add a reference to assembly ‘mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089’.
[BasicCameraController.cs(31,16)]: Error: Predefined type ‘System.Object’ is not defined or imported
[BasicCameraController.cs(31,16)]: Error: The type ‘ValueType’ is defined in an assembly that is not referenced. You must add a reference to assembly ‘mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089’.
[BasicCameraController.cs(31,53)]: Error: Predefined type ‘System.Void’ is not defined or imported
[BasicCameraController.cs(33,16)]: Error: The type ‘Object’ is defined in an assembly that is not referenced. You must add a reference to assembly ‘mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089’.
[BasicCameraController.cs(33,16)]: Error: Predefined type ‘System.Object’ is not defined or imported
[BasicCameraController.cs(33,16)]: Error: The type ‘ValueType’ is defined in an assembly that is not referenced. You must add a reference to assembly ‘mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089’.
[BasicCameraController.cs(33,50)]: Error: Predefined type ‘System.Void’ is not defined or imported
[BasicCameraController.cs(35,16)]: Error: The type ‘Object’ is defined in an assembly that is not referenced. You must add a reference to assembly ‘mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089’.
[BasicCameraController.cs(35,16)]: Error: Predefined type ‘System.Object’ is not defined or imported
[BasicCameraController.cs(35,16)]: Error: The type ‘ValueType’ is defined in an assembly that is not referenced. You must add a reference to assembly ‘mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089’.
[BasicCameraController.cs(35,50)]: Error: Predefined type ‘System.Void’ is not defined or imported
[BasicCameraController.cs(37,25)]: Error: Predefined type ‘System.Void’ is not defined or imported
[BasicCameraController.cs(52,25)]: Error: Predefined type ‘System.Void’ is not defined or imported
[BasicCameraController.cs(58,17)]: Error: Predefined type ‘System.Void’ is not defined or imported
[BasicCameraController.cs(156,17)]: Error: Predefined type ‘System.Void’ is not defined or imported
[BasicCameraController.cs(37,30)]: Error: Predefined type ‘System.Void’ is not defined or imported
[BasicCameraController.cs(52,30)]: Error: Predefined type ‘System.Void’ is not defined or imported
[BasicCameraController.cs(18,44)]: Error: The type ‘Object’ is defined in an assembly that is not referenced. You must add a reference to assembly ‘mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089’.
[BasicCameraController.cs(18,44)]: Error: Predefined type ‘System.Object’ is not defined or imported
[BasicCameraController.cs(18,53)]: Error: Predefined type ‘System.Single’ is not defined or imported
[BasicCameraController.cs(18,65)]: Error: Predefined type ‘System.Single’ is not defined or imported
[BasicCameraController.cs(20,17)]: Error: The type ‘Object’ is defined in an assembly that is not referenced. You must add a reference to assembly ‘mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089’.
[BasicCameraController.cs(20,17)]: Error: Predefined type ‘System.Object’ is not defined or imported
[BasicCameraController.cs(20,17)]: Error: The type ‘ValueType’ is defined in an assembly that is not referenced. You must add a reference to assembly ‘mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089’.
[BasicCameraController.cs(21,17)]: Error: The type ‘Object’ is defined in an assembly that is not referenced. You must add a reference to assembly ‘mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089’.
[BasicCameraController.cs(21,17)]: Error: Predefined type ‘System.Object’ is not defined or imported
[BasicCameraController.cs(21,17)]: Error: The type ‘ValueType’ is defined in an assembly that is not referenced. You must add a reference to assembly ‘mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089’.
[BasicCameraController.cs(22,17)]: Error: Predefined type ‘System.Single’ is not defined or imported
[BasicCameraController.cs(23,17)]: Error: Predefined type ‘System.Single’ is not defined or imported
Error: Unable to build assembly reference [C:\Users\Shva\Documents\Xenko Projects\bball\bball\Bin\Windows\Debug\bball.Game.dll]
Verbose: Game assemblies compiled…
Warning: Can’t load Game assembly
Verbose: Compiling game assemblies…
Verbose: Game assemblies compiled…
Verbose: Restoring NuGet packages…
Verbose: Restoring packages for C:\Users\Shva\Documents\Xenko Projects\bball\bball\bball.Windows\project.json…
Verbose: Unable to resolve ‘NETStandard.Library (>= 1.6.0)’ for ‘.NETFramework,Version=v4.6.1’.
Verbose: Committing restore…
Verbose: Writing lock file to disk. Path: C:\Users\Shva\Documents\Xenko Projects\bball\bball\bball.Windows\project.lock.json
Verbose: C:\Users\Shva\Documents\Xenko Projects\bball\bball\bball.Windows\project.json
Verbose: Restore failed in 176ms.
Error: Errors in C:\Users\Shva\Documents\Xenko Projects\bball\bball\bball.Windows\project.json
Error: Unable to resolve ‘NETStandard.Library (>= 1.6.0)’ for ‘.NETFramework,Version=v4.6.1’.
Verbose: NuGet Config files used:
Verbose: C:\Users\Shva\AppData\Roaming\NuGet\NuGet.Config


#2

Is this some NuGet issue?


#3

Which version of Visual Studio did you install (Community, Pro, Enterprise)? What workloads (components) did you chose when installing Visual Studio?
You need at least MSBuild, .Net desktop development and optionally UWP, Mobile, .NET Core.

Make sure no firewall or proxy is blocking internet connection (needed to resolve some NuGet dependencies).


#4

Hi. Thank you for the prompt response.

Visual Studio 2017 Community.

I chose the .Net Desktop development workload.

MsBuild is showing as installed in the VS installer.


#6

Tried to repair vs. reinstall Xenko.
Nothing helps.

This might be a nuget thing? but then lots of users would see it.
the last two lines of the error log for ex. refer to a nuget config file that doesn’t seem to exist.

Verbose: NuGet Config files used:
Verbose: C:\Users\Shva\AppData\Roaming\NuGet\NuGet.Config

Microsoft’s documentation seems to suggest nuget.config has been moved about:

With Visual Studio 2017+ and NuGet 4.0+, the machine-wide NuGet.Config is located at %ProgramFiles(x86)%\NuGet\Config\ to improve security in multi-user scenarios.


#7

Ok. I guess I’ll try the next release.