Is there a way to automatically deploy nuget packages in Visual Studio 2017? - nuget

I'd like to know if there is a way to automatically deploy NuGet package.
I tried many extensions but not working for VS 2017.
I do know that there is a packager as new VS 2017 feature. But there is no package tab in my project (.NET Library) properties.

If you want the integrated package management for .NET Framework Libraries (not .NET Standard or .NET Core), you can create a .NET Standard Library and edit the csproj file by replacing
<TargetFramework>netstandard1.4</TargetFramework>
with
<TargetFramework>net461</TargetFramework>
There is no built-in template yet for this library type and some designers (win forms, xaml, ..) will not be available but this unlocks all integrated packaging features.

Related

How do you setup Visual Studio for Mac and NUnit

I am using Visual Studio for Mac version 8.5.4 (build 12) and I used NuGet to install Nunit package. I can create a Project NUnit but when I attempt to reference my project I want to test I can't choose my project because it says the .Net target framework is incompatible.
When I added the NUnit project it asked me to pick the target framework and only gave me the option of 2.0, 3.0 and 3.1. Even when I change my project down to 3.1 it still says it's incompatible.
How do you setup Visual Studio for Mac and NUnit
Edit: .Net Standard
Edit 2: I was WRONG. I was using .Net Core and .Net standard together and that was the problem. Thank you everyone.
I was using .Net Core and .Net Standard when I wanted to use .Net Standard for everything.

Unity 2018 and .Net Framework greater then 4.6

So Unity 2018 should support .Net Framework libraries above 4.6 (visit https://blogs.unity3d.com/2018/03/28/updated-scripting-runtime-in-unity-2018-1-what-does-the-future-hold/).
I really need the .Net Framework 4.7.1 support for my project, but it doesn't works. The Scripting Runtime Version and Api Compatibility Level in the Unity Player Settings are setted to .NET 4.x. If i open the C-Sharp Project with Visual Studio 2017, i can install packages with NuGet, that needs the .Net Framework 4.7.1. After the installation the namespaces are available in C#, but if i go back to the Unity Editor, there are already errors in the console, that the namespace of the just installed package could not be found.
I have also tried to overwrite the in the .csproj, but after i open the Project in Unity, it just overwrites it again back to 4.6. The whole compatibility stuff has already worked for me in the 2018.1b, but then i installed the stable version 2018.1.0f2 and now it works neither with the stable nor the beta-version. I also can't find a good guide that explains it, how to use / setup the .Net Framework 4.7.1 support in Unity.

VSTS and Web Essentials

Im using Web Essentials 2013 for compiling LESS files and bundling JS/CSS/HTML files.
Is there any way to setup a build definition in Visual Studio Team Services Online that compiles and bundles my files?
I recommend that you can upgrade to Bundler & Minifier for VS2015, which has MSBuild support.
Bundler & Minifier
Web Compiler
Some related threads:
Command line tool for recompiling bundles
How call Web Essentials task in MSBuild ?

Adding Prism reference in Xamarin PCL project breaks build on Windows Phone 8.1 and UWP

I'm using some of core Prism classes in PCL Project for Multi-platform app. Everything Is fine (I chcecked only on Android as I don't have a Mac) until I add Windows Phone 8.1 or Universal Windows 10 Project and configure them like Xamarin website tells. What I receive is:
Cannot resolve Assembly or Windows Metadata file 'Prism.dll'
Type universe cannot resolve assembly: Prism, Version=6.1.0.0,
Culture=neutral, PublicKeyToken=91a96d2a154366d8.
When I remove all Prism related thing from PCL the projects build, so I'm considering copying prism project into my solution. Or maybe should I reference Prism as a dll instead of nuget or what?
I always thought that nuget takes the job of picking the dll with proper target.
Edit: Xamarin.Froms ver: 2.0.0.6490 (in all projects now) VS 2015.
You can't use the current NuGet packages if using UWP because NuGet will add the wrong assemblies to your Xamarin.Forms project. NuGet doesn't know you are using a Xamarin.Forms app and adds the wrong assemblies. You need to add the references manually.
See this issue: https://github.com/PrismLibrary/Prism/issues/376

visual studio 2012 ultimate incompatible

I just installed Visual Studio 2012 Ultimate and then i Install Entity Framework using package manager console now when i open my project class library loaded successfully but my mvc web project not load
It gives me the error
incompatible.
Is your WebProject MVC 1 or 2? If yes, then according to this article you should run an upgrade to MVC3.
If it is not, then this article mentions another way to open this project.