dnu

ASP.NET 5 (vNext) Deployment via TFS 2015

Deadly 提交于 2020-01-01 10:04:53
问题 We're trying to work through the new tool chain for building and deploying an ASP.NET 5 (vNext) CoreCLR web site to a server cluster. Between the new compilation changes and the changes to TFS, I'm not sure how everything now gets built and deployed. The scenario is as follows: On-premise TFS for source control and build agent Targeting ASP.NET 5 under CoreCLR, hosted via IIS Questions are: Using TFS for continuous integration builds (and hopefully deployment to an on-premise IIS server), how

ASP.NET 5 (vNext) Deployment via TFS 2015

折月煮酒 提交于 2020-01-01 10:04:24
问题 We're trying to work through the new tool chain for building and deploying an ASP.NET 5 (vNext) CoreCLR web site to a server cluster. Between the new compilation changes and the changes to TFS, I'm not sure how everything now gets built and deployed. The scenario is as follows: On-premise TFS for source control and build agent Targeting ASP.NET 5 under CoreCLR, hosted via IIS Questions are: Using TFS for continuous integration builds (and hopefully deployment to an on-premise IIS server), how

Showing `dnu publish` exceptions in TeamCity Build Results

时光毁灭记忆、已成空白 提交于 2019-12-24 03:30:18
问题 I've spent about 3 days to setup TeamCity to build and publish asp.net-5 project. Finally I did it by using dnu publish command to publish the site. I'm using the batch file to do it with following commands // stops the apppool for 'samplesite' overvise it returns exception // The process cannot access the file '...' because it is being used by another process call "%windir%\system32\inetsrv\appcmd" stop apppool "samplesite" // publish the site to the --out dir call "C:\Users\Administrator\

Can I build an “old school” PCL with DNX/DNU?

我与影子孤独终老i 提交于 2019-12-20 16:10:36
问题 In Noda Time 1.3.1, our .csproj file referred to Profile 328 and our .nuspec file put the results in lib\portable-net4+sl5+netcore45+wpa81+wp8+MonoAndroid1+MonoTouch1+XamariniOS1 For Noda Time 2.0, I've moved everything over to DNX/DNU (soon to be dotnet cli, of course). However, we now want to build a regularly-updated package containing the latest time zone information from IANA. We'll build one version of that with a dependency on Noda Time 1.3.1, and another version with a dependency on

dnu publish - System.ArgumentNullException: Value cannot be null

倖福魔咒の 提交于 2019-12-20 05:57:36
问题 When running the following dnu publish , I get an ArgumentNullException exception thrown. dnu publish "C:\Project\MyProject" --out "C:\a" --configuration Debug --runtime dnx-clr-win-x86.1.0.0-beta6 Exception thrown: Restoring packages for C:\a\approot\src\RelatedProject\project.json ---------- System.ArgumentNullException: Value cannot be null. Parameter name: key at System.Collections.Generic.Dictionary`2.FindEntry(TKey key) at System.Collections.Generic.Dictionary`2.TryGetValue(TKey key,

Open XML in dnx5.0 / aspnext

蹲街弑〆低调 提交于 2019-12-13 02:17:35
问题 I'm trying to build an app that uses OpenXML in a dnx/aspnet next environment. I've added added the OpenXML dependency to my package.json "dependencies": { .... "DocumentFormat.OpenXml": "2.5.0" } However, when i try to run, i get this error: The type 'Package' is defined in an assembly that is not referenced. You must add a reference to assembly 'WindowsBase, Version=4.0.0.0 It seems OpenXML depends on WindowsBase. I'm fearful that this won't work in linux/mac environment, as I can't find a

Can the dnx/dotnetcore package cache location be changed

家住魔仙堡 提交于 2019-12-10 19:31:30
问题 I have a machine where the C:\ drive is running out of space and I'd like to change the location where my DNX/DOTNET packages are installed to a location under my D:\ drive. Is the package cache location configurable? NOTE: I don't have the flexibility to change my profile location to a different drive. 回答1: Use the NUGET_PACKAGES environment variable and set it to a path you prefer. Specifically, open up System Properties, create a user environment variables called NUGET_PACKAGES , and set

asp.net5/dnx Unable to resolve reference when published but can debug?

自古美人都是妖i 提交于 2019-12-10 11:46:18
问题 So this seems a bit odd, I have a dnx command line application that is a single solution referencing 4 other .net 4.5 classic (aka .csproj) projects. I can execute the code and debug into it without problems. However I can not run it once it is published. The app starts up and shows some output from a Console.Write and then tries to run some code that queries the db using Entity Framework v6.1.3. The error I get is "Could not load file or assembly 'EntityFramework, Version=6.0.0.0" which

Nuget Configuration in ASP.NET Core 1.0

旧城冷巷雨未停 提交于 2019-12-10 07:24:34
问题 In our existing solution we have a NuGet.Config file with the following content: <?xml version="1.0" encoding="utf-8"?> <configuration> <solution> <add key="disableSourceControlIntegration" value="true" /> </solution> <config> <add key="repositorypath" value="NuGetPackages" /> </config> </configuration> With this config we tell NuGet to store all packages in the "NuGetPackages" folder. This works fine for all our existing Projects (WebApi, Libraries, ...), but if I add a new ASP.NET Core

DNU Restore gives lots of “HTTP request timed out”

三世轮回 提交于 2019-12-09 18:08:42
问题 I'm trying to run the samples from https://github.com/aspnet/home. But I'm having problems updating the references. The restore is very slow and fails for some packages: GET http://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?id='Microsoft.Framework.Configuration.EnvironmentVariables' Warning: FindPackagesById: Microsoft.Framework.Configuration.EnvironmentVariables HTTP request timed out. Retrying. GET http://www.nuget.org/api/v2/FindPackagesById()?id='Microsoft.Framework