Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot build #5

Open
aphilpotts opened this issue Feb 1, 2016 · 3 comments
Open

Cannot build #5

aphilpotts opened this issue Feb 1, 2016 · 3 comments

Comments

@aphilpotts
Copy link

I pulled the source (master), and tried a rebuild, no joy, I expect I need to tweak something, at least to point to the version of Chakra I already built, I notice there are no System references in the Microsoft.Scripting project, should I be adding them by hand?

Here is a sampling of the errors I get

Severity Code Description Project File Line Source Suppression State
Error CS0246 The type or namespace name 'System' could not be found (are you missing a using directive or an assembly reference?) Microsoft.Scripting C:\Users\aphilpotts\AppData\Local\Temp.NETPortable,Version=v5.0.AssemblyAttributes.cs 2 IntelliSense Active
Error CS0246 The type or namespace name 'System' could not be found (are you missing a using directive or an assembly reference?) Microsoft.Scripting C:\Users\aphilpotts\AppData\Local\Temp.NETPortable,Version=v5.0.AssemblyAttributes.cs 3 IntelliSense Active
Error CS0400 The type or namespace name 'System' could not be found in the global namespace (are you missing an assembly reference?) Microsoft.Scripting C:\Users\aphilpotts\AppData\Local\Temp.NETPortable,Version=v5.0.AssemblyAttributes.cs 4 IntelliSense Active
Error CS0518 Predefined type 'System.String' is not defined or imported Microsoft.Scripting C:\Users\aphilpotts\AppData\Local\Temp.NETPortable,Version=v5.0.AssemblyAttributes.cs 4 IntelliSense Active

@robpaveza
Copy link
Owner

Can you tell me what version of Visual Studio you're using?

@robpaveza
Copy link
Owner

@aphilpotts Is there any chance you're seeing this issue? https://github.com/dotnet/corefx/issues/5140#issuecomment-174720390

@aphilpotts
Copy link
Author

Odd, that issue just went away after restarting visual studio, for the record I am using VS2015, I do see a much more specific error now, in JavaScriptconverter.cs line 255 it does not like IsValueType

        else if (t.IsValueType) 
        {
           ...
       }

Severity Code Description Project File Line Source Suppression State
Error CS1061 'Type' does not contain a definition for 'IsValueType' and no extension method 'IsValueType' accepting a first argument of type 'Type' could be found (are you missing a using directive or an assembly reference?) Microsoft.Scripting C:\Users\aphilpotts\Source\Repos\jsrt-dotnet\src\Microsoft.Scripting\JavaScript\JavaScriptConverter.cs 255 IntelliSense Active

I changed it to:

        else if (!t.IsByRef) 

Now I can build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants