在 Visual Studio 2019 中保存项目文件会还原 csproj 文件中的更改 [英] Saving project file in Visual Studio 2019 reverts changes in the csproj file

查看:53
本文介绍了在 Visual Studio 2019 中保存项目文件会还原 csproj 文件中的更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是 Microsoft Visual Studio Professional 2019 RC 版本 16.0.0 (VisualStudio.16.Release/16.0.0+28729.10),我在保存项目文件时间歇性地发现对项目文件的更改是正在撤消.

I'm using Microsoft Visual Studio Professional 2019 RC Version 16.0.0 (VisualStudio.16.Release/16.0.0+28729.10) and I'm finding that intermittently when I save a project file the changes to the project file are being undone.

事实证明这有点令人困惑,因为我添加的 NuGet 包消失了,或者更新的包恢复到以前的版本.

This has proved more than a little confusing as NuGet packages I've added disappear, or updated ones revert to previous versions.

同样,如果我在项目中包含了文件,那么它们在保存后将不再包含在内,所以看起来更改没有正确到达 csproj 文件?

Likewise, if I've included files in the project they will then no longer be included after the save, so it looks like the changes are not getting to the csproj file correctly?

有没有其他人遇到过这种情况,有人知道为什么会这样吗?

Is anyone else experiencing this and does anyone know why this happens?

推荐答案

这似乎在 16.1.0 Preview 2.0 中得到解决

This seems to be resolved in 16.1.0 Preview 2.0

这篇关于在 Visual Studio 2019 中保存项目文件会还原 csproj 文件中的更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆