发布ASP.NET vNext / DNX与CLR类库结合使用
|
我已将我的“传统”DAL项目添加到ASP.NET vNext并在本地使用它进行工作/调试,没有任何问题.但是,当我尝试将其发布到Azure时,它不会.它声明’3>发布由于构建错误而失败.检查错误列表以获取更多详细信息.’,但错误列表中有0,项目运行也正常. 那么有可能将’旧的’4.5.1项目与DNX目标项目结合起来吗?如果是这样,现在发布只是一个问题或其他什么? 作为一种解决方法,我试图创建一个DNX类库,但这不允许我(在VS 2015中)使用Browse按钮添加引用,所以我无法将我的旧类库移植到新格式,因为我还需要2 DLL. 构建日志 3>------ Publish started: Project: Example.Kitchen,Configuration: Release Any CPU ------
Project "Example.Kitchen.xproj" (MSDeployPublish target(s)):
Building with tools version "14.0".
Task "Error" skipped,due to false condition; ( '$(_InvalidConfigurationError)' == 'true' ) was evaluated as ( '' == 'true' ).
Task "Warning" skipped,due to false condition; ( '$(_InvalidConfigurationWarning)' == 'true' ) was evaluated as ( '' == 'true' ).
Configuration=Debug
Platform=AnyCPU
Task "Error" skipped,due to false condition; ('$(OutDir)' != '' and !HasTrailingSlash('$(OutDir)')) was evaluated as ('..artifactsbinExample.Kitchen' != '' and !HasTrailingSlash('..artifactsbinExample.Kitchen')).
Task "Error" skipped,due to false condition; ('$(BaseIntermediateOutputPath)' != '' and !HasTrailingSlash('$(BaseIntermediateOutputPath)')) was evaluated as ('..artifactsobjExample.Kitchen' != '' and !HasTrailingSlash('..artifactsobjExample.Kitchen')).
Task "Error" skipped,due to false condition; ('$(IntermediateOutputPath)' != '' and !HasTrailingSlash('$(IntermediateOutputPath)')) was evaluated as ('..artifactsobjExample.KitchenDebug' != '' and !HasTrailingSlash('..artifactsobjExample.KitchenDebug')).
Using "GetRuntimeToolingPath" task from assembly "C:Program Files (x86)MSBuildMicrosoftVisualStudiov14.0DNXMicrosoft.DNX.Tasks.dll".
Task "Error" skipped,due to false condition; (!Exists('$(RuntimeToolingExe)')) was evaluated as (!Exists('C:UsersGabriel.dnxruntimesdnx-clr-win-x86.1.0.0-beta6bindnx.exe')).
Using "DefaultExternalToolsPath" task from assembly "C:Program Files (x86)MSBuildMicrosoftVisualStudiov14.0DNXMicrosoft.DNX.Tasks.dll".
Using "GetRuntimeVersion" task from assembly "C:Program Files (x86)MSBuildMicrosoftVisualStudiov14.0DNXMicrosoft.DNX.Tasks.dll".
rmdir /S /Q "C:UsersGabrielAppDataLocalTempPublishTemp"
Using "Dnu" task from assembly "C:Program Files (x86)MSBuildMicrosoftVisualStudiov14.0Web..DNXMicrosoft.DNX.Tasks.dll".
Environment variables:
Path=D:DevelopmentdotnetExampleExample.Kitchennode_modules.bin;C:Program Files (x86)Microsoft Visual Studio 14.0Common7IDEextensionsmicrosoftweb toolsexternal;C:Program Files (x86)Microsoft Visual Studio 14.0Common7IDECommonExtensionsMicrosoftTeamFoundationTeam ExplorerNativeBinariesx86;C:WINDOWSsystem32;C:WINDOWS;C:WINDOWSSystem32Wbem;C:WINDOWSSystem32WindowsPowerShellv1.0;C:Program FilesMicrosoft SQL Server110ToolsBinn;C:Program Files (x86)Microsoft SDKsTypeScript1.0;C:Program FilesMicrosoft SQL Server120ToolsBinn;C:Program Files (x86)Gitcmd;C:Program Files (x86)GtkSharp2.12bin;C:Program FilesMicrosoft SQL ServerClient SDKODBC110ToolsBinn;C:Program Files (x86)Microsoft SQL Server120ToolsBinn;C:Program FilesMicrosoft SQL Server120DTSBinn;C:Program Files (x86)Microsoft SQL Server120ToolsBinnManagementStudio;C:Program Files (x86)Microsoft SQL Server120DTSBinn;C:Program Files (x86)SkypePhone;C:Program Files (x86)Windows Kits10Windows Performance Toolkit;C:Program Files (x86)Microsoft Emulator Manager1.0;C:Program Files (x86)nodejs;C:Program FilesMicrosoftWeb Platform Installer;C:UsersGabriel.dnxbin;C:Windowssystem32;C:Windows;C:WindowsSystem32Wbem;C:WindowsSystem32WindowsPowerShellv1.0;C:Program Files (x86)Windows Kits8.1Windows Performance Toolkit;C:Program FilesMicrosoft SQL Server110ToolsBinn;C:Program Files (x86)Microsoft SDKsTypeScript1.0;C:Program FilesMicrosoft SQL Server120ToolsBinn;C:Program Files (x86)Gitcmd;C:Program Filesnodejs;C:Python27;C:Python27Scripts;C:UsersGabrielAppDataRoamingnpm";C:UsersGabrielAppDataRoamingnpm;C:Program Files (x86)Microsoft Visual Studio 14.0Common7IDEextensionsmicrosoftweb toolsexternal.git
C:UsersGabriel.dnxruntimesdnx-clr-win-x86.1.0.0-beta6bindnu.cmd publish "D:DevelopmentdotnetExampleExample.Kitchen" --out "C:UsersGabrielAppDataLocalTempPublishTemp" --configuration Debug --runtime dnx-clr-win-x86.1.0.0-beta6 --wwwroot-out "wwwroot" --quiet
Microsoft .NET Development Utility CLR-x86-1.0.0-beta6-12256
Copying to output path C:UsersGabrielAppDataLocalTempPublishTemp
Time elapsed 00:00:03.4408766
Done building project "Example.Kitchen.xproj" -- FAILED.
3>Publish failed due to build errors. Check the error list for more details.
========== Build: 2 succeeded,0 failed,0 up-to-date,0 skipped ==========
========== Publish: 0 succeeded,1 failed,0 skipped ==========
解决方法修复我已经拥有的东西如果您不想升级,可以尝试从项目目录运行以下命令: C:UsersGabriel.dnxruntimesdnx-clr-win-x86.1.0.0-beta6bindnu.cmd publish "D:DevelopmentdotnetExampleExample.Kitchen" --out "C:UsersGabrielAppDataLocalTempPublishTemp" --configuration Debug --runtime dnx-clr-win-x86.1.0.0-beta6 --wwwroot-out "wwwroot" --quiet 但是,删除–quiet标志并确保运行dnvm list以确保您具有dnx-clr-win-x86.1.0.0-beta6运行时. 推荐步骤: 我认为这已经在最新的beta8中得到了解决. 确保update to the latest version (RC1)(包括工具)并确保您没有使用旧版软件包(没有beta6 / beta8). 另外,请务必查看RC1中引入的breaking changes. (编辑:安卓应用网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
- asp.net-mvc-3 – 不能使用NuGet PagedList ASP.NET MVC#查
- asp.net – 如何在asp net core api中使用Created(或Create
- asp.net-mvc – RedirectToAction导致在ASP.NET MVC 3中“路
- asp.net – 检查是否在集成管道模式
- asp.net-mvc – web.config中的表单身份验证
- asp.net – 如何在WebAPI中获取POST数据?
- .net – 如何将变量传递给SqlDataSource的SelectCommand?
- asp.net-ajax – ASP.Net AJAX UpdatePanel无法触发Selecte
- ASP.Net将文件下载到客户端浏览器
- asp.net-mvc-3 – 模型绑定逗号分隔的查询字符串参数
- Page_Load在ASP.NET页面中触发两次
- asp.net-mvc – 使用asp.net MVC重定向到404页面
- asp.net-mvc – 如何在ASP.NET MVC部分视图中使用
- asp.net – RequiredFieldValidator要求用户单击
- ASP.NET(C#)应用程序配置文件app.config/web.con
- asp.net-mvc-3 – ASP.Net MVC 3 Razor Concaten
- asp.net-core-mvc – 在Entity Framework Core中
- asp.net – 如何限制文本框中允许的字符数?
- asp.net – ActivationManager构建过程中的异常?
- asp.net-mvc – asp.net mvc针对不同操作的不同验
