I was wondering if EPPLus can be use in Visual Studio 2019. I was looking into others Nugets but this is the most relevant for what I need. I saw in the Nuget Gallery (https://www.nuget.org/packages/EPPlus/) that it is usefull in Visual Studio 2017.
EPPLus is a nuget package, it is not linked to Visual studio version but on your code target. So you can use it in VS 2019.
I'm using it in my current project in .NET Core API
I can see the OP accepted the previous answer but here is a more detailed answer just in case anybody needs it in the future.
From Package Manager Console in an open project
Install-Package EPPlus
If you do not know where to access Package Manager Console from
Navigate to Tools / Nuget Package Manager / Package Manager Console
Then run the above command
or
Right click dependencies in the project and select Manage Nuget Packages
in the browse tab enter EPPlus
Related
I tried to open a .Net Core solution which was working fine in 2015. Recently they added some .Net Core projects to the solution and asked us to upgrade to Visual Studio 2017 to be able to run them. We installed Visual Studio 2017 and tried to open the solution, but I am not able to build it. I get the following errors when I right-click and try to select "Manage Nuget packages".
I tried to open the PackageManager console from Tools: even this is not working
I also performed the "repair Visual Studio" process too.
Finally i resolved it by deleting my nuget.config both at project level and also in %appdata%/roaming/nuget .I think the issue is because of broken config file due to change from visual 2015 to visual studio 2017 .Not sure about the exact issue though
I would like to install the following library in Visual Studio 2010:
https://github.com/sshnet/SSH.NET
And I really don't know how I'm supposed to do.
Can anyone please help me?
1) You can install the nuget package manager if you don't yet have in your VS 2010. This link will help you install nuget package manager.
2) After you have nuget manager then you can right click on your project in visual studio, click 'Manage Nuget Packages' and in the browse window that appears search for 'SSH.Net', once the package is listed click on install option to install the package with your project.
I recently installed Visual Studio 2017. I migrated the existing project which created in Visual Studio 2015. It got migrated without any errors. But when I build the solution I get 100+ errors stating Package [Microsoft.AspNetCore...] is not compatible with [netcoreapp...]
There are more than 100 items listed like this. I tried
renaming the sdk value in global.json
removing sdk value in global.json
repair, uninstall & reinstalling Visual Studio 2017. But none of them work.
I'm not sure where to add net451 in imports as explained here because the project.json file is deleted while migration.
The same project was working fine in Visual Studio 2015. All issues started after migrating to Visual Studio 2017.
Please let me know how to fix this error.
Due to your last comment I believe your problem is with the Nuget cache. I've seen this before where Nuget is pulling older packages after updating to .NET Core Tooling RTM and or VS 2017. To fix this run dotnet nuget locals --clear all. Then try creating a new .NET Core project.
You have to do this solution
open menu>project>'your project name'proprties...
in the opened window Application Tab change 'Target Framework' combo to '.Net Core 2.0'
now close the window and update again
enjoy it:)
If you are coming here after VStudio 2019 and you can't install the upgrade-assistant to get you to .net 5, upgrade your Visual Studio to 16.9+
I have inherited a Visual Studio (VB) project. (I am new to Visual Studio, Net Framework and VB). I need to add Credit Card payment processing using BeanStream. As per the instructions provided on http://developer.beanstream.com/, I tried to install Beanstream package using NuGet Package Manager Console.
PM> Install-Package Beanstream
It installed the package successfully but then rolled back and displayed an error message:
Install-Package: Failed to add refernece to 'Microsoft.CSharp'. Please make sure that it is in the Global Assembly Cache.
I understand that Micsosoft.CSharp is either not installed on my Windows PC or is not accessible to Visual Studio. I did not find 'Microsoft.CSharp' in the Add Reference dialog box.
Could someone please advise how to fix this issue?
How do you get msbuild.exe without installing those crazy Visual Studio programs?
I need it for an npm install to finish working. I'm on Windows 7 and can't get on older version of Visual Studio 2013 Express online.
The latest (as of Jan 2019) stand-alone MSBuild installers can be found here: https://www.visualstudio.com/downloads/
Scroll down to "Tools for Visual Studio 2019" and choose "Build Tools for Visual Studio 2019" (despite the name, it's for users who don't want the full IDE)
See this question for additional information.
It used to be installed with the .NET framework. MsBuild v12.0 (2013) is now bundled as a stand-alone utility and has it's own installer.
http://www.microsoft.com/en-us/download/confirmation.aspx?id=40760
To reference the location of MsBuild.exe from within an MsBuild script, use the default $(MsBuildToolsPath) property.
You can also get the MSBuild executable as a Nuget package https://www.nuget.org/packages/Microsoft.Build.Runtime/.
Download MSBuild with the link from #Nicodemeus answer was OK, yet the installation was broken until I've added these keys into a register:
[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\MSBuild\ToolsVersions\12.0]
"VCTargetsPath11"="$([MSBuild]::ValueOrDefault('$(VCTargetsPath11)','$(MSBuildExtensionsPath32)\\Microsoft.Cpp\\v4.0\\V110\\'))"
"VCTargetsPath"="$([MSBuild]::ValueOrDefault('$(VCTargetsPath)','$(MSBuildExtensionsPath32)\\Microsoft.Cpp\\v4.0\\V110\\'))"