本文介绍了如何使用Visual Studio来确定“项目属性”中的哪些设置仅是用户特定的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 我发布了 StackOverflow上的这个问题,但还没有回复...... 项目属性保存到csproj文件(整个团队的设置,进入源代码管理)或csproj.user文件(仅限用户设置,不进入源代码管理)。 有没有办法在Visual Studio中选择应该存储特定设置?或者必须直接在项目文件中编辑这些内容? 解决方案 嗨olaeld, Welcome到MSDN论坛。 你的VS版本是什么?我检查了VS 2010,2012和2015,在解决方案存储文件夹下没有* .csproj.user文件。看起来这个文件已经从VS 2010中删除了,因为VS 2008的主流支持和更简单的版本已经从2013年结束了,我们可以从这里知道: https://support.microsoft.com/en-us/lifecycle/search?alpha=visual% 20studio%202008 ,这个文件在互联网上的信息很少。最好升级到最近的VS版本,比如VS 2015或VS 2017 RC,你的问题会得到更好的支持,谢谢你的理解。 据我所知,.csproj .user文件是每用户项目文件,如果删除该文件,它将在项目打开时自动创建,项目系统将在项目关闭时重写每用户项目文件。 " .csproj"是Visual Studio .NET C#Project文件扩展名。该文件将包含有关该项目中包含的文件,该项目中使用的程序集,项目GUID和项目版本等的信息。它将在我们创建时自动生成。这是为了允许多个用户在项目上工作,这对于在具有源代码管理的团队中工作至关重要。 我发现了类似的问题: http://stackoverflow.com/questions/8314124/how-to-prevent-generation-of-csproj-user看起来我们不能根据他们的不同贡献或角色来切换它们。 祝你好运, Sara I posted this question on StackOverflow, but no reply yet...Project properties are either saved to a csproj file (settings for the whole team, goes into source control), or to a csproj.user file (settings for the user only, does not go into source control).Is there a way to choose in Visual Studio where a particular setting should be stored? Or must such things be edited in the project files directly? 解决方案 Hi olaeld,Welcome to the MSDN forum.What’s your VS version? I checked VS 2010, 2012 and 2015 on my side, there is no the *.csproj.user file under the solution store folder. It looks like this file was removed from VS 2010 and since the mainstream support of VS 2008 and easier version already ended up from 2013, we can know it from here:https://support.microsoft.com/en-us/lifecycle/search?alpha=visual%20studio%202008, there are much little information of this file on the internet. It is better to upgrade to the recently VS version like VS 2015 or VS 2017 RC, you will get a better support for your issue, thank you for your understanding.As far as I know, the .csproj.user file is the per-user project file and it will auto create when the project open if this file be deleted, and the project system will rewrite the per-user project file when the project is closed. The ".csproj" is a Visual Studio .NET C# Project file extension. This file will have information about the files included in that project, assemblies used in that project, project GUID and project version etc. It will be automatically generated when we create. This is to allow multiple users to work on a project, which is critical when working in a team with source control.I found a similar issue:http://stackoverflow.com/questions/8314124/how-to-prevent-generation-of-csproj-user and it looks like we cannot switch them per their different contribution or roles.Best regards,Sara 这篇关于如何使用Visual Studio来确定“项目属性”中的哪些设置仅是用户特定的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 11-02 19:31