question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Major issues making new solution

See original GitHub issue

I am unable to build or even save a new solution on the newest userkit. I had to reinstall everything (VS 2017, Windows, etc.) on my computer a few days back due to an unrelated issue and I haven’t been able to get Cosmos working since. I have applied the fix to Cosmos.targets from #744.

When building a new solution I get the following output:

Solution is not saved. Please save your solution before managing NuGet packages.
NuGet package restore failed.
1>------ Build started: Project: CosmosKernel1, Configuration: Debug Any CPU ------
1>C:\Users\dsdud\AppData\Local\Temp\.NETStandard,Version=v1.5.AssemblyAttributes.cs(4,20,4,26): error CS0400: The type or namespace name 'System' could not be found in the global namespace (are you missing an assembly reference?)
1>obj\Debug\netstandard1.5\CosmosKernel1.AssemblyInfo.cs(14,12,14,18): error CS0246: The type or namespace name 'System' could not be found (are you missing a using directive or an assembly reference?)
1>obj\Debug\netstandard1.5\CosmosKernel1.AssemblyInfo.cs(15,12,15,18): error CS0246: The type or namespace name 'System' could not be found (are you missing a using directive or an assembly reference?)
1>obj\Debug\netstandard1.5\CosmosKernel1.AssemblyInfo.cs(16,12,16,18): error CS0246: The type or namespace name 'System' could not be found (are you missing a using directive or an assembly reference?)
1>obj\Debug\netstandard1.5\CosmosKernel1.AssemblyInfo.cs(17,12,17,18): error CS0246: The type or namespace name 'System' could not be found (are you missing a using directive or an assembly reference?)
1>obj\Debug\netstandard1.5\CosmosKernel1.AssemblyInfo.cs(18,12,18,18): error CS0246: The type or namespace name 'System' could not be found (are you missing a using directive or an assembly reference?)
1>obj\Debug\netstandard1.5\CosmosKernel1.AssemblyInfo.cs(19,12,19,18): error CS0246: The type or namespace name 'System' could not be found (are you missing a using directive or an assembly reference?)
1>obj\Debug\netstandard1.5\CosmosKernel1.AssemblyInfo.cs(20,12,20,18): error CS0246: The type or namespace name 'System' could not be found (are you missing a using directive or an assembly reference?)
1>obj\Debug\netstandard1.5\CosmosKernel1.AssemblyInfo.cs(21,12,21,18): error CS0246: The type or namespace name 'System' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\dsdud\AppData\Local\Temp\.NETStandard,Version=v1.5.AssemblyAttributes.cs(4,71,4,98): error CS0518: Predefined type 'System.String' is not defined or imported
1>C:\Users\dsdud\AppData\Local\Temp\.NETStandard,Version=v1.5.AssemblyAttributes.cs(4,100,4,120): error CS0246: The type or namespace name 'FrameworkDisplayName' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\dsdud\AppData\Local\Temp\.NETStandard,Version=v1.5.AssemblyAttributes.cs(4,123,4,125): error CS0518: Predefined type 'System.String' is not defined or imported
1>obj\Debug\netstandard1.5\CosmosKernel1.AssemblyInfo.cs(14,55,14,70): error CS0518: Predefined type 'System.String' is not defined or imported
1>obj\Debug\netstandard1.5\CosmosKernel1.AssemblyInfo.cs(15,61,15,68): error CS0518: Predefined type 'System.String' is not defined or imported
1>obj\Debug\netstandard1.5\CosmosKernel1.AssemblyInfo.cs(16,59,16,80): error CS0518: Predefined type 'System.String' is not defined or imported
1>obj\Debug\netstandard1.5\CosmosKernel1.AssemblyInfo.cs(17,59,17,68): error CS0518: Predefined type 'System.String' is not defined or imported
1>obj\Debug\netstandard1.5\CosmosKernel1.AssemblyInfo.cs(18,68,18,75): error CS0518: Predefined type 'System.String' is not defined or imported
1>obj\Debug\netstandard1.5\CosmosKernel1.AssemblyInfo.cs(19,55,19,70): error CS0518: Predefined type 'System.String' is not defined or imported
1>obj\Debug\netstandard1.5\CosmosKernel1.AssemblyInfo.cs(20,53,20,68): error CS0518: Predefined type 'System.String' is not defined or imported
1>obj\Debug\netstandard1.5\CosmosKernel1.AssemblyInfo.cs(21,55,21,64): error CS0518: Predefined type 'System.String' is not defined or imported
1>Kernel.cs(4,13,4,19): error CS0246: The type or namespace name 'Cosmos' could not be found (are you missing a using directive or an assembly reference?)
1>Kernel.cs(1,7,1,13): error CS0246: The type or namespace name 'System' could not be found (are you missing a using directive or an assembly reference?)
1>Kernel.cs(2,7,2,13): error CS0246: The type or namespace name 'System' could not be found (are you missing a using directive or an assembly reference?)
1>Kernel.cs(3,7,3,13): error CS0246: The type or namespace name 'System' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\dsdud\AppData\Local\Temp\.NETStandard,Version=v1.5.AssemblyAttributes.cs(2,7,2,13): error CS0246: The type or namespace name 'System' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\dsdud\AppData\Local\Temp\.NETStandard,Version=v1.5.AssemblyAttributes.cs(3,7,3,13): error CS0246: The type or namespace name 'System' could not be found (are you missing a using directive or an assembly reference?)
1>obj\Debug\netstandard1.5\CosmosKernel1.AssemblyInfo.cs(11,7,11,13): error CS0246: The type or namespace name 'System' could not be found (are you missing a using directive or an assembly reference?)
1>obj\Debug\netstandard1.5\CosmosKernel1.AssemblyInfo.cs(12,7,12,13): error CS0246: The type or namespace name 'System' could not be found (are you missing a using directive or an assembly reference?)
1>Kernel.cs(10,28,10,32): error CS0518: Predefined type 'System.Void' is not defined or imported
1>Kernel.cs(15,28,15,32): error CS0518: Predefined type 'System.Void' is not defined or imported
1>Kernel.cs(10,33,10,42): error CS0115: 'Kernel.BeforeRun()': no suitable method found to override
1>Kernel.cs(15,33,15,36): error CS0115: 'Kernel.Run()': no suitable method found to override
1>C:\Program Files\dotnet\sdk\1.1.0\Sdks\Microsoft.Net.Sdk\build\Microsoft.NET.Sdk.targets(92,5): error : Assets file 'C:\Users\dsdud\AppData\Local\Temporary Projects\CosmosKernel1\obj\project.assets.json' not found. Run a NuGet package restore to generate this file.
1>Done building project "CosmosKernel1.csproj" -- FAILED.
2>------ Build started: Project: CosmosKernel1Boot, Configuration: Debug Any CPU ------
2>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(1987,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "System.Core". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
2>	Invoking il2cpu.exe "DebugEnabled:True" "StackCorruptionDetectionEnabled:False" "StackCorruptionDetectionLevel:" "DebugMode:Source" "TraceAssemblies:" "DebugCom:1" "UseNAsm:True" "OutputFilename:C:\Users\dsdud\AppData\Local\Temporary Projects\CosmosKernel1\bin\Debug\net462\CosmosKernel1Boot.asm" "EnableLogging:True" "EmitDebugSymbols:True" "IgnoreDebugStubAttribute:False" "References:C:\Users\dsdud\AppData\Roaming\Cosmos User Kit\Kernel\Cosmos.Core.Plugs.Asm.dll" "References:C:\Users\dsdud\AppData\Roaming\Cosmos User Kit\Kernel\Cosmos.Core.Plugs.dll" "References:C:\Users\dsdud\AppData\Roaming\Cosmos User Kit\Kernel\Cosmos.Debug.Kernel.Plugs.Asm.dll" "References:C:\Users\dsdud\AppData\Roaming\Cosmos User Kit\Kernel\Cosmos.System.Plugs.dll" "References:C:\Users\dsdud\AppData\Local\Temporary Projects\CosmosKernel1\bin\Debug\netstandard1.5\CosmosKernel1.dll" 
2>C:\Users\dsdud\AppData\Roaming\Cosmos User Kit\Build\VSIP\Cosmos.targets(39,5): error : Error occurred while invoking IL2CPU.
2>	Executing command line "C:\Users\dsdud\AppData\Roaming\Cosmos User Kit\Build\IL2CPU\IL2CPU.exe" "DebugEnabled:True" "StackCorruptionDetectionEnabled:False" "StackCorruptionDetectionLevel:" "DebugMode:Source" "TraceAssemblies:" "DebugCom:1" "UseNAsm:True" "OutputFilename:C:\Users\dsdud\AppData\Local\Temporary Projects\CosmosKernel1\bin\Debug\net462\CosmosKernel1Boot.asm" "EnableLogging:True" "EmitDebugSymbols:True" "IgnoreDebugStubAttribute:False" "References:C:\Users\dsdud\AppData\Roaming\Cosmos User Kit\Kernel\Cosmos.Core.Plugs.Asm.dll" "References:C:\Users\dsdud\AppData\Roaming\Cosmos User Kit\Kernel\Cosmos.Core.Plugs.dll" "References:C:\Users\dsdud\AppData\Roaming\Cosmos User Kit\Kernel\Cosmos.Debug.Kernel.Plugs.Asm.dll" "References:C:\Users\dsdud\AppData\Roaming\Cosmos User Kit\Kernel\Cosmos.System.Plugs.dll" "References:C:\Users\dsdud\AppData\Local\Temporary Projects\CosmosKernel1\bin\Debug\netstandard1.5\CosmosKernel1.dll" 
2>	Working directory = 'C:\Users\dsdud\AppData\Local\Temporary Projects\CosmosKernel1\bin\Debug\net462\'
2>	Loaded : DebugEnabled
2>	Loaded : StackCorruptionDetectionEnabled
2>	Loaded : DebugMode
2>	Loaded : StackCorruptionDetectionLevel
2>	Loaded : TraceAssemblies
2>	Loaded : DebugCom
2>	Loaded : UseNAsm
2>	Loaded : OutputFilename
2>	Loaded : EnableLogging
2>	Loaded : EmitDebugSymbols
2>	Loaded : IgnoreDebugStubAttribute
2>	Loaded : References
2>	Loaded : AdditionalSearchDirs
2>	Loaded : AdditionalReferences
2>	Executing IL2CPU on assembly
2>	Error: No Kernel found!
2>	Errorred
2>	IL2CPU invoked with DebugMode='Source', DebugEnabled='True',StackCorruptionDetectionLevel='{NULL}', TraceAssemblies='{NULL}', IgnoreDebugStub='False'
2>	IL2CPU task took 00:00:02.7742373
2>Done building project "CosmosKernel1Boot.Cosmos" -- FAILED.
2>
2>Build FAILED.
========== Build: 0 succeeded, 2 failed, 0 up-to-date, 0 skipped ==========

Additionally, upon trying to save the new solution, Visual Studio displays an error that reads: “The operation could not be completed. No such interface supported.”

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:13 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
dsdude123commented, Sep 3, 2017

Found a workaround for this issue, it turns out that “Save new projects when created” located in Options>Projects and Solutions>General was disabled and as a result the Cosmos project was being created as a temporary project and the restore failed as a result. Enabling this option fixes the issue.

Alternatively, adding <PromptForSaveOnCreation>true</PromptForSaveOnCreation> to the Visual Studio Templates for Cosmos should also fix the issue according to the MSDN although I have not tested this.

0reactions
dsdude123commented, Sep 30, 2017

@LegitSoulja My issue of missing assemblies was being caused by the save issue because NuGet cannot perform a restore unless the project was saved. This is now fixed in the devkit (https://github.com/CosmosOS/Cosmos/commit/3dbb8678c49e14934ec9525d53b716ca4231534a), please open a new issue as for it is unrelated to this one. Either that or you have applied the fix for userkit incorrectly. Issue closed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

8 Creative Solutions to Your Most Challenging Problems
We all face problems. That's why being creative when solving problems is important. Here are 8 creative solutions to problem solving.
Read more >
35 problem-solving techniques and methods for ...
Solving challenges is easier with the right methods. Create innovative solutions and solve tough problems fast with these problem-solving ...
Read more >
14 Effective Problem-Solving Strategies
1. Define the problem ... Taking the time to define a potential challenge can help you identify certain elements to create a plan...
Read more >
The Six Step Problem Solving Model
Define the Problem. 2. Determine the Root Cause(s) of the Problem. 3. Develop Alternative Solutions. 4. Select a Solution. 5. Implement the Solution....
Read more >
5. Tech causes more problems than it solves
Concerns are organized under four subthemes: Something is rotten in the state of technology; technology use often disconnects or hollows out a ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found