Unable to load solution created in VS for Mac in Xamarin Studio - asp.net-core

I am testing out the new Visual Studio for Mac, and I created a new .NET Core empty web application - was able to build and run the project.
Then I tried opening the solution with Xamarin Studio and I got the following error message:
Project file doesn't have a valid ProjectGuid
Am I trying to do something that is not possible at the moment, or am I missing some configuration?

Xamarin Studio does not support .NET Core projects created by Visual Studio for Mac.
The project file format is very different for .NET Core projects created by Visual Studio for Mac. One example is that the project does not have a GUID however there are many differences.
The DNX addin was created to support the older style .NET Core projects, which use .xproj and project.json files. Visual Studio for Mac creates the newer MSBuild SDK style project files which are .csproj files.

Related

Project template for .Net Core Web Application missing in VS 2019

I instaled Visual Studio 2019 and updated Visual studio to Version 16.4.5. I have
the component "Microsoft .NET Core SDK 3.1.101 (x64) from Visual Studio" installed in my PC. But when a try to create a web application in Core 3.1, I dont get the web templates. I have only the ones shown in the picture. I would appreciate some help on how to have the templates when creating a Core project
The project templates were available when I downloaded the 3.1 SDK from link

Brand new CLR Class Library project won't build: missing MSCOREE.lib

Using the latest Visual Studio 2019 version, a brand new project will not build:
fatal error LNK1104: cannot open file 'MSCOREE.lib'
I have tried to re-install Visual Studio but that didn't change anything unfortunately.
These components have been selected by the installer but apparently it's not enough:
MSVC v142 - VS 2019 C++ x64/x86 build tools (v14.24)
Windows 10 SDK (10.0.18362.0)
C++/CLI support for v142 build tools (14.24)
Question:
Are there any tricks to get CLR Class Library (.NET Framework) projects to build ?
Here is the solution:
Apparently, no matter what framework version you will target, the $(NETFXKitsDir)Lib\um\x86 macro will always point to C:\Program Files (x86)\Windows Kits\NETFXSDK\4.7.2\lib\um\x86.
Now here's the problem, even though you install 4.7.2 SDK in Visual Studio Installer, this file is nowhere to be seen.
But if you download .NET Framework 4.7.2 Developer Pack Offline Installer and press the Repair button, it gets correctly installed and a brand new project will build succesfully.
Alternatively:
Re-installing VS also fixes the issue ...

How to open dotnet-core CLI project in Visual Studio 2017

I have been developing a simple application using dotnet Core (for an API) and Angular2 for the purpose of learning both.
I created the project using Yeoman on the command line and have been happily coding away in Visual Studio Code (on Windows). All seems to hang together well and it's been an enjoyable experience.
I thought I might try out Visual Studio 2017 and see what the experience of developing a dotnet Core project in VS is like for a while.
However, having installed VS2017 and cloned the project from github I am unsure how to proceed. I can't see any way to restore/build/run the project.
After cloning the repo, I see my project displayed in the Solution Explorer with the project.json file visible. However, Debug | Start is greyed out. I read somewhere about VS2017 needing to convert project.json to the new (old?) XML format and also I have a feeling I am missing a .sln file.
I would appreciate it if someone could point me in the right direction.
If your project has an .xproj file
Open Visual Studio.
File > Open > Project/Solution.
Open the xxx.xproj for your solution.
If your project lacks an .xproj file
Install .NET Core SDK Preview 3 or higher.
Open a command prompt at your project's directory.
Run dotnet migrate.
Open the resulting .csproj in Visual Studio 2017.
Troubleshooting
View migration help with dotnet migrate -h.
If you have a global.json file, update its SDK version before running migrate. E.g.
{
"sdk": {
"version": "1.0.0-preview4-004233"
}
}
View installed SDK versions with dir 'C:\Program Files\dotnet\sdk\'.
Update Visual Studio 2017 and its installer. On my machine, the above works with Microsoft Visual Studio Community 2017 RC Version 15.0.26014.0 D15REL.
Update .NET Core SDK. On my machine, the above works with SDK 1.0.0-preview4-004233.

Upgraded WinForms project from VS2005 to VS2012. Now my ReportViewer DLLs are missing

I got a copy of a Visual Studio 2005 project from a friend. The project referenced the DLLs Microsoft.ReportViewer.Common and Microsoft.ReportViewer.WinForms. On my machine I have Visual Studio 2012. I upgraded the project. The references to these DLLs are broken, understandably, because they are Windows locations, not in the VS project. So, I want to delete the references and re-create, but I cannot find the DLLs on my machine. Do they not get installed with Visual Studio 2012? Can I download them?
I got a copy of a Visual Studio 2005 project from a friend
Which explains the problem, the target .NET version of your project is 2.0. The ReportViewer included with VS2012 requires at least 3.5.
Fix it with Project + Properties, Application tab, Target Framework combobox. You'll then find the ReportViewer control back under the "Reporting" header in the toolbox.
These have been replaced by Report Server. Though if you'd copy them over from your VS2005 machine you should still be able to use them as binary references in your solution. You can download the binaries from the MSDN Download site.
Though there should be binaries for Visual Studio 2012 as well. I suspect they will get installed when you install the SQL Server Development tools, which include the SQL Server Reporting Server components.
You can try to use the Redistributable package for Visual Studio 2010.

How Upgrade A Project From .Net 2.0 To .Net 4.0 Using Visual Studio 2010?

i am a c# web developer and vb.net project is not familiar for me.
i have a project in .net 2.0 that i want to upgrade it to .net 4.0 with using visual studio 2010.
when i open that project with visual studio 2010 every thing is normal and it seems it is working in .net 2.0.
i created a new project with visual studio and added all .net 2.0 project files to the new project.
but after that i had many errors like below :
'List' is not declared. It may be inaccessible due to its protection
what did i do wrong and how can i upgrade that project?
also where can i find the project's .Net framework ver for VB language (in c# we can change it by right clicking on project and properties, but here there is no such a properties)?
thanks in advance
You have "Visual Studio Conversion Wizard"
http://msdn.microsoft.com/en-us/library/dd483478(v=vs.100).aspx