简体   繁体   English

Visual Studio Build平台因同一项目上的不同用户而异

[英]Visual Studio Build platform varies for different users on the same project

So this is just a general question regarding behavior in the Visual Studio IDE. 因此,这只是有关Visual Studio IDE中行为的一般问题。 We have solution files with project from our code repositories. 我们有来自代码存储库的项目解决方案文件。 I can sync to get the latest changes, and view the project on my machine and the platform target of the project may be x86. 我可以同步以获取最新更改,并在我的计算机上查看项目,并且该项目的平台目标可能是x86。 My coworker, can perform the same sync, open the same project in the same version of visual studio on their machine and it will open as x64 . 我的同事可以执行相同的同步,在他们的计算机上的相同版本的Visual Studio中打开相同的项目,并且它将以x64形式打开。 Also mine may open in Debug while his may open in say Release. 我的也可以在Debug中打开,而他的可以在Release中打开。 I would have thought these configs would be specific to the project and therefore saved with it but it appears to be a local setting that is driving these settings?? 我本以为这些配置将特定于项目,因此与之一起保存,但它似乎是驱动这些设置的本地设置? Should I be worried, is there something wrong here?? 我应该担心,这里有什么问题吗? Any advice would be greatly appreciated. 任何建议将不胜感激。 Thanks! 谢谢!

In order to let you reload your solution in the latest state you leaved it, Visual Studio uses two types of files ".user" and ".suo" file, these files will be created at some point when you make changes to your projects/solution, if the file exists in your folder, Visual Studio will load it as part of the solution to change some settings, if the file doesn't exists, Visual Studio will load the solution with the default values. 为了让您在离开解决方案的最新状态下重新加载解决方案,Visual Studio使用了两种类型的文件“ .user”和“ .suo”,当您更改项目/解决方案,如果文件存在于您的文件夹中,Visual Studio会将其作为更改某些设置的解决方案的一部分进行加载;如果该文件不存在,则Visual Studio将使用默认值加载解决方案。 These files should not be committed to the source control since they are intended to respect "per user" settings. 这些文件不应提交给源代码管理,因为它们旨在遵守“每个用户”设置。

If you want to test this, be sure to get the source code to a completely clean folder (you and your colleague). 如果要对此进行测试,请确保将源代码保存到一个完全干净的文件夹(您和您的同事)中。

There's nothing to worry about, you can safely remove them or have them in your working directory. 无需担心,您可以安全地删除它们或将它们放在您的工作目录中。

For additional information about these files you can review this post: Should I add the Visual Studio .suo and .user files to source control? 有关这些文件的其他信息,您可以查看以下文章: 我应该将Visual Studio .suo和.user文件添加到源代码管理中吗?

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在 Visual Studio 中引用一个项目并为特定平台构建它 - Reference a project in Visual Studio and build it for a specific platform 在Visual Studio中对具有不同目标平台的另一个项目的项目引用 - Project reference to another project with different target platform in Visual Studio 不同版本Visual Studio上的相同构建事件 - The same build event on different version Visual Studio 是否可以在 Visual Studio 中为相同的 TargetFramework 构建不同的 output? - Is it possible to build a different output for the same TargetFramework in Visual Studio? 同一解决方案 Visual Studio 中每个项目的不同测试设置 - Different Test Settings per project in same solution Visual Studio 如何从C#项目的构建事件中访问Visual Studio解决方案级平台? - How can you access the Visual Studio solution level platform from a C# project's build event? Visual Studio项目平台依赖引用 - Visual Studio project platform dependent references .Net Core Visual Studio 项目命令行构建与右键构建相同 - .Net Core Visual Studio project command line build same as right-clicking build 如何在项目中使用不同的文件以用于不同的构建配置 - Visual Studio C#.net - How to use different files in a project for different build configurations - Visual Studio C# .net 如何在不同的解决方案之间共享相同的 Visual Studio 项目? 不同的 app.config 和 settings.settings - How to share same Visual Studio project between different solutions? Different app.config and setttings.settings
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM