0 votes

Hi,
Version : Godot mono x64 3.2.3 RC3
I need to add NuGet package json newtonsoft to project solution , but I can't open .csproj and .sln in visual studio because .csproj is uncompatible with this version of visual studio . Upgrade Log

I can open it in VS code . here is the output . maybe it tells you something

    Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2012
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Soviet Project godot v 3.2.3", "Soviet Project godot v 3.2.3.csproj", "{B1DDFE8B-F3D4-41D0-8CA0-3A0363821C4E}"
EndProject
Global
    GlobalSection(SolutionConfigurationPlatforms) = preSolution
    Debug|Any CPU = Debug|Any CPU
    ExportDebug|Any CPU = ExportDebug|Any CPU
    ExportRelease|Any CPU = ExportRelease|Any CPU
    EndGlobalSection
    GlobalSection(ProjectConfigurationPlatforms) = postSolution
        {B1DDFE8B-F3D4-41D0-8CA0-3A0363821C4E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
        {B1DDFE8B-F3D4-41D0-8CA0-3A0363821C4E}.Debug|Any CPU.Build.0 = Debug|Any CPU
        {B1DDFE8B-F3D4-41D0-8CA0-3A0363821C4E}.ExportDebug|Any CPU.ActiveCfg = ExportDebug|Any CPU
        {B1DDFE8B-F3D4-41D0-8CA0-3A0363821C4E}.ExportDebug|Any CPU.Build.0 = ExportDebug|Any CPU
        {B1DDFE8B-F3D4-41D0-8CA0-3A0363821C4E}.ExportRelease|Any CPU.ActiveCfg = ExportRelease|Any CPU
        {B1DDFE8B-F3D4-41D0-8CA0-3A0363821C4E}.ExportRelease|Any CPU.Build.0 = ExportRelease|Any CPU
    EndGlobalSection
EndGlobal

I saw Visual studio 2012 at the top of the file. So I installed Visual Studio 2012 and tried to openned it via Visual Studio 2012 but .csproj is still uncompatible

I can also open .csproj via VS code . I figured out that my toolsversion is 4.0.

<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

And according to Microsoft article about this problem everything must be fine (as i understood) , but it's not

What renders a project incompatible with previous versions of Visual Studio is not the Visual Studio version, but the MSBuild version, as determined by ToolsVersion. If your version of Visual Studio contains the MSBuild toolchain that matches the ToolsVersion in a project, then Visual Studio can invoke that toolchain to build the project.

To maintain compatibility with projects that you created in previous
versions, Visual Studio 2019 includes the necessary MSBuild toolchains
to support ToolsVersion 15, 14, 12, and 4. Projects that use any of
these ToolsVersion values should result in a successful build.
(Subject, again, to whether Visual Studio 2019 supports the project
type, as described on Platform Targeting and Compatibility.)

I was able to open this files in other projects in latest stable godot version 3.2.2 but in 3.2.3 .... =(

So how to fix this problem (make possible to open .csproj and .sln in Visual studio). Or is there another way to add NuGet packages to Solution without openning solution in visual studio.

I will appreciate all the help info

in Engine by (34 points)

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.