trouble in loading example C# solution in VS2015 Update 3

16 views
Skip to first unread message

hks...@gmail.com

unread,
Mar 17, 2019, 10:08:47 PM3/17/19
to grpc.io
I have trouble in loading example C# solution Helloworld and Routeguide in VS 2015 Update 3.

It has error message that says

"One or more projects in the solution were not loaded correctly. Please see the Output Window for details."

And the Output says

"The default XML namespace of the project must be the MSBuild XML namespace. If the project is authored in the MSBuild 2003 format, please add xmlns="http://schemas.microsoft.com/developer/msbuild/2003" to the <Project> element. If the project has been authored in the old 1.0 or 1.2 format, please convert it to MSBuild 2003 format."

I googled about the problem and found


Many Q&As including this page say that I should use VS2017 to open new type csproj file.

But README.md file in the HelloworldLegacyCsproj says that I can use new-style .csproj projects in VS2015 Update3 and above, and this is exact version I am using but I still see above error message.


So I wonder how to load this project files in VS 2015 Update3.

I tried build and run in cmd, and it worked properly. And I can edit in notepad. However, further projects I have to deal with would be too complicated to work without VS.

Of course, I can use Legacy project for Helloworld, but as I edit proto files the reference does not work. I cannot use Helloworld namespace at GreeterServer and GreeterClient project. So that's another problem I should deal with.

Any Help will be appreciated. Thanks.

Benjamin Krämer

unread,
Mar 19, 2019, 9:40:22 AM3/19/19
to grpc.io
Visual Studio 2015 Update 3 supports the new csproj format, but only the build tools for .NET Core 1.0. Helloworld is targeting netcoreapp2.1 which needs at least Visual Studio 2017 in the version 15.3. The README.md here is outdated and might be from a time where they targeted netcoreapp1.0. So you should definetly switch to Visual Studio 2017 if you plan to develop for .NET Core.

Benjamin Krämer

unread,
Mar 19, 2019, 9:50:07 AM3/19/19
to grpc.io
I just created a PR (https://github.com/grpc/grpc/pull/18429) to fix this misleading information and the broken link.

hks...@gmail.com

unread,
Mar 19, 2019, 9:07:06 PM3/19/19
to grpc.io
Thanks for your notification! I am beginner for programming so I couldn't check it myself. Thanks a lot
Reply all
Reply to author
Forward
0 new messages