[英]Chutzpah nuget package - how to use it with VS2015 javascript file-what is the procedure
[英]How to correctly edit vbproj file in VS2015 for incorrect nuget package information
我们有一个驻留在Visual Studio Online中的项目,我们正在尝试将其部署到Azure。 执行构建后,我们收到有关缺少的nuget软件包的错误。 在VS中,nuget确实报告说缺少软件包,我将其还原,但是我们在VSO中仍然遇到错误(该应用程序编译时没有错误,并且如果我直接从VS部署到Azure,它可以工作)。
因此,我打开了vbproj文件,在上一节中,我看到了:
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('..\theprojectfolder\packages\Microsoft.Net.Compilers.1.0.0\build\Microsoft.Net.Compilers.props')" Text="$([System.String]::Format('$(ErrorText)', '..\SMDTalentLink\packages\Microsoft.Net.Compilers.1.0.0\build\Microsoft.Net.Compilers.props'))" />
<Error Condition="!Exists('..\theprojectfolder\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.0\build\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.props')" Text="$([System.String]::Format('$(ErrorText)', '..\SMDTalentLink\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.0\build\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.props'))" />
恢复软件包后,似乎VS尚未删除该错误。 VSO看到错误,因此不会编译该程序包。 我可以删除它还是需要以某种方式对其进行编辑? 我对proj文件不熟悉,恐怕会使情况变得更糟。
删除项目确实可以解决问题。 不清楚为什么VS没有解决它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.