Import ASP.net Visual Studio files into mono - mono

How to import ASP.net Visual Studio files into new mono project ?
i.e. add the entire tree structure to a new mono project ?

MonoDevelop supports loading Visual Studio .sln solution files, so there's no need to "import" anything.

Related

What must be done to make net5.0 usable in Visual Studio Community Mac 2019 for VB.NET console projects?

I want to write a cross-platform console application in VB.NET using Visual Studio Community Mac 2019 [VSCM2019]. It has to be able to be run on all platforms that dotnet 5.x currently supports.
When I create a new VB.NET console application in VSCM2019 it defaults to NET Frameworks 4.8 or lower. When I try to change that to net5.x in the project properties, net5.x is not offered in the dropdown list despite the fact that I have installed the latest dotnet 5 sdk.
Is it the case that I must select net5.x when creating the project? If so, where is this done for VB.NET console applications?
Whether or not VB.NET is supported or not, I managed to hack it into submission. I created a net5 C# project, renamed the .csproj file to .vbproj and replaced the .cs file with a .vb file. Instead of opening VS via the .sln file, I opened it via the .vbproj file. It compiled and ran and the project properties reflected the change to VB.NET. I then replaced the .sln by saving the project.

How to use bootstrap after NuGet installed it on Visual Studio Mac?

I'm a newbie to asp.net core and using NuGet install bootstrap package firstime. However, after I installed this package on Visual Studio Mac, I can't find any css/js files in my solution folder.
I'm using Visual Studio Mac 2019 and created a web app using asp.net core.
I expect I can find css/js files in solution folder, or I can reference any parameters in my razor pages.

How reimport .targets file in Visual Studio?

I work in Visual Studio. It seems for me, that, if I change anything in imported .targets file, the new version of .targets is not reimported to main project while building it. If I reopen my project (I.e. close and open again Visual Studio) and then launch build - the new version of .targets works.
Is it possible to tell Visual Studio to import .targets at any rebuild?
I tried use "rebuild" and "clean" solution and project, without any result regarding the problem.
Re-evaluating imported files is done by the new CPS-based project systems that are used for .NET Core / .NET Standard projects.
For VS versions before VS 2019, you may also need to indicate to MSBuild that the imported targets file should also re-trigger incremental build by adding its path to $(MSBuildAllProjects) (this is no longer needed in MSBuild 16 / VS 2019):
<PropertyGroup>
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
</PropertyGroup>
But for "classic" .NET Framework / ASP.NET projects, you still need to close and re-open the solution for changes to take effect inside the IDE.
Also see this GitHub tracking issue for the legacy project system.

Could not load file or assembly 'Microsoft.Owin in Visual Studio

I've got a fresh Visual Studio 2017 installation with a fresh .NET Core 2.0 installation. I've created a .NET Core 2.0 Web project in Visual Studio. Now, when I try to do almost anything in that project (try to open site.js, try to add some files to wwwroot, try to open site.css etc) I get this error:
Could not load file or assembly 'Microsoft.Owin, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
This is a fresh install of Visual Studio 2017, fresh install of .NET Core, and a fresh, untouched project with default settings. What am I doing wrong?
Restarting Visual Studio fixed it. Duh.

Visual Studio C# - tutorial creating project .dll for NUnit

I am looking for a tutorial where explains how to create a .dll project in Visual Studio for NUnit and how import it to Nunit, because In Visual Studio I only know to create a C# Console project and there I wrote the C# code for selenium, but to upload it in NUnit I need a .dll file not the "exe" pVisual studio project
Thanks
You need to setup this in your project. Click right button on your project
Propertis->Application->Output type: setup to -> class library.