Is it possible to set the default project of Visual Studio, similar to Eclipse Workspace ?
I know I can shift projects to different drives later on, but How to create a project in specific location and how would I do that?
Tools --> Options --> Projects and Solutions --> Project Location.
To set default path for cloning Git Repository:
Tools-->Options-->Source Control-->Git Global Settings-->Default Location
Related
My team has an ASP.NET project that was originally created in Visual Studio on Windows, and has only ever been developed in that environment up to this point. Today, I opened that project for the first time in Visual Studio for Mac (version 7.6 build 711), and added a new file to the project.
After doing that, while looking at the diff on the pull request, my team noticed this new addition to the .csproj file, evidently made by Visual Studio for Mac:
<MonoDevelop>
<Properties>
<XspParameters Port="8080" Address="127.0.0.1" SslMode="None" SslProtocol="Default" KeyType="None" CertFile="" KeyFile="" PasswordOptions="None" Password="" Verbose="True" />
</Properties>
</MonoDevelop>
What is this? What does it do?
Should we manually remove it, given that the application will continue to only ever be hosted in Windows environments?
(I suspect it is probably harmless? On the other hand, I'd like to understand what it is before putting a project built with that element present into production; I'm leery about the Passsword="", for example, potentially manifesting some kind of security hole.)
These are just the settings that are used when running the ASP.NET project with Mono's ASP.NET hosting server (XSP). You can remove these properties.
Testing this and it seems that these properties are added to the project if you open the Project Options dialog and then click the OK button. Ideally if the values match the defaults then this should not be added to the project file.
It would probably make sense for Visual Studio for Mac to store this information in the same way as run configurations are in the .user file instead of adding it to the main project.
I've do a small project, my application will release 2 version, each version contain different image resource, different Application setting file. I known that in the XCode, it's have a term call Target which allow developer config some folder which want to build for each version.
Can Visual Studio do the same thing like XCode?
Thank you!
I believe what you are looking for is solution build configurations, check this link out:
http://msdn.microsoft.com/en-us/library/kwybya3w(v=vs.110).aspx
Here is a good example of including a reference for a specific configuration.
Visual Studio Project: How to include a reference for one configuration only?
You will need to research the topic a bit, but here is how to get started:
1. Open your Solution
2. In solution explorer right click the solution
3. Select Configuration Manager
4. Create a new configuration or modify one of the default ones.
Example of a solution with many build configurations:
Each of these configurations have custom configs and some have different references based on the configuration.
Are the settings in Visual Studio 2010 stored with the solution or with the IDE?
Is there any way to have settings that are the default with the IDE and then overriden by the project?
Any settings affecting the user interface, the ones you set with Tools + Options are not stored in solution or project files. Nor is there a way to get a loaded solution to alter them. They are stored in the CurrentSettings.vssettings file, Documents/Visual Studio 20xx/Settings subdirectory of your user folder.
They can be exported and imported. Under the Tools menu, check out Import and Export Settings...
The VS2010 IDE settings are saved with the IDE, not with the project or solution. (Except, of course the project/solutions settings, but I assume that we're not talking about that)
After reading this msdn article,it seems that the common way to have different sets of configuration is using the import/export setting option having one xml file for each configuration set.
Maybe some addin could do the job, but at this time I don't know any with this features.
I have a Visual Studio 2010 solution with several projects.
One of the projects is set as the default project, but I want to change that by default.
I know that I can right click the project I want to be the startup project and select "Set as StartUp project", but this setting will be stored in the user's files (.slo and .user files).
As a company policy, we don't check these files in the source control system, therefore when another user opens the solution it will have a different project as the startup object.
Is there another way to set these values? Something like a setting on the .sln or .proj files?
Thanks
From Arian Kulp's site, the way to change the default startup project for a solution is to edit the .sln file. You'll see some Project and EndProject lines. The first Project listed will be the default startup project, so just move the one you want to the top.
Follow these steps:
Choose the name of the project which you want to set default startup project
Click to the Project on toolbar and then click Set as startup project
Is it possible to add visual studio macros to a solution, so they would be checked in by svn ?
If not, how do you deploy your utilities/scripts with your developer team ?
Unless I'm mistaken, VS Macros are stored in a .vsmacros file as selected when you created the Macro project (I think the default location is C:\Users\yourname\Documents\Visual Studio 2010\Projects\VSMacros80), so just copy that file to your project's directory and add it to the project with no build action and you should be all set.
But that's just if you want to use those macros only with that project, most macros are useful in many projects and if so I'd recommend keeping them where they are rather than in the folder of just one project, and then just add the .vsmacros file manually to subversion to some suitable location (suggestion would be a Tools folder) and check in and out manually when needed.