Edi Wang

Azure Developer, Microsoft MVP

NuGet


How to Pack a .NET Core Class Library and Upload to NuGet

NuGet is the package manager of the. NET world, we can both use official website nuget.org, or build our own corporate and private servers. Now, with . NET Core, it's easier than ever to pack and upload a NuGet package, let's take a look! NuGet Account If you want your package to be used by every .NET developers in the world, then you need to have a nuget.org account to upload your own package.  …

.NET NuGet

超详细图解:自己架设NuGet服务器

NuGet 是.NET程序员熟知的给.NET项目自动配置安装library的工具,现在已经整合在了VS2010 SP1和VS2012里。但有时候,尤其在某些公司内部,因为公司防火墙,VS是没办法连接NuGet服务器的。所以我们需要自己架设一个私服。 一、网站构建 首先,确保你的机器在互联网上,并且能够访问NuGet服务器。 创建一个空的ASP.NET网站,选择Framework4(因为考虑到部署问题,很多服务器还没有装.NET4.5,所以我们只能选4) 接下来,用NuGet为这个Web Project安装“NuGet.Server”库。这也是为什么我们需要这台机器能够连接互联网的原因。 安装成功后,你的Solution会变成这样一个结构。并且不需要写任何代码或更改任何配置,它已经可以运行了。但是注意,Packages里只有一个readme.txt,这个目录是用来放NuGet包的。所以现 …

Visual Studio NuGet

How to Manually Upgrade ASP.NET MVC3 Projects to MVC4

前几天公司的阿三给我了一项艰巨的任务:码一个MVC4网站。本猿之前只用过MVC3,稍微看了下MVC4,有些地方都变了,如果用默认模板全新做一个MVC4网站得很小心,比如javascript的位置很容易爆出翔来。但好消息是,之前码MVC3的所有知识,都可以用在MVC4上,无需任何代码修改。 作为一个有梦想有目标的屌丝,我如果自己都没认真用过MVC4,以后在公司装逼就没底气了。所以,今天我正好休息在家,查了写资料,成功的把博客从MVC3升级到了MVC4。现在你看到的这个博客,就是稳定运行在MVC4上的。 首先,运行MVC4并不需要IIS8或.NET4.5。它完全能够部署在IIS7、IIS7.5上。所以我不用升级Target Framework的版本。只需要更新MVC4的相关DLL,以及一些config文件就可以完成升级。 按照 http://www.asp.net/whitepapers/ …

ASP.NET NuGet

  • 1