首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Visual总是用Paket重新构建解决方案

Visual总是用Paket重新构建解决方案
EN

Stack Overflow用户
提问于 2018-09-07 09:54:52
回答 1查看 116关注 0票数 0

我对Visual中的包使用Paket而不是Nuget非常感兴趣。

到目前为止,这也很好。但问题是,Visual总是认为每个项目的app.config都已更改。但是,看看我在Git工具中的变化,没有什么变化。即使我在运行之前直接构建,例如我的单元测试。

你有什么意见建议?

我的paket.dependencies看起来是这样的:

代码语言:javascript
复制
// Only the target frameworks that are used in projects.
framework: net461
content: none

source https://api.nuget.org/v3/index.json
source http://myownnugetrepo.com/nexus/

nuget SharpZipLib 0.86.0
nuget Autofac.WebApi2.Owin
nuget My.Own.Package redirects: on
nuget EasyNetQ.DI.Autofac
nuget EFInteractiveViews
nuget ExcelDataReader.DataSet
nuget FluentAssertions
nuget Microsoft.AspNet.WebApi.OwinSelfHost 
nuget Microsoft.CSharp
nuget Microsoft.Diagnostics.Tracing.EventSource
nuget Microsoft.Graph
nuget Microsoft.Identity.Client
nuget Microsoft.IdentityModel.Clients.ActiveDirectory 
nuget Microsoft.VisualStudio.SlowCheetah
nuget NSubstitute
nuget NUnit
nuget Oracle.ManagedDataAccess.EntityFramework
nuget RestSharp.Newtonsoft.Json.Extensions 
nuget Serilog.Sinks.Async
nuget Serilog.Sinks.Console
nuget Serilog.Sinks.RollingFile
nuget Swashbuckle
nuget Topshelf.Serilog

Visual怎么说(如果使用对角模式构建):

项目“My.Project”不是最新的。在输出文件'‘之后修改输入文件'C:\Projects\My.Project\src\My.Project.Interface\app.config’。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2018-09-10 05:22:19

好的我知道了。在沉睡之后,我找到了Paket命令来执行以下操作:

代码语言:javascript
复制
paket auto-restore on

这解决了我的问题。我以为它是自动完成的,把这个项目从nuget转换到paket,但事实并非如此。现在它起作用了。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/52220021

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档