How to change the Visual studio target path? - c#-4.0

Unfortunately, I have copied and pasted one Program(Project) to a path. This project has been developed in Visual studio 2010. Now, this project is not executing. It prompts the target path. How can we change this target path?

You can open *.csproject file with any text or XML editor, change the wrong path, then save the file. Then re-open the project with Visual Studio again.

Related

How to save dart file in file system with android studio generated comments?

I like how Android Studio and Visual Studio , generate the comments for each closing brackets, but when I open the same file in notepad++ or any other text editor, I don't see those comments. Is there a way to generate the saved dart file so it has those comments stored as part of the text code( in comment) ?
Here is one code example that how code looks in android studio.
but when opened with notepad it does not have the comment MaterialApp. I am guessing there is some settings in android studio that will let me save file with generated comments, so it can be useful outside of Android studio like in git etc.
These comments are generated "on the fly" by the Flutter plugin for Android Studio. At no time, these comments are inserted into your source files. They are just shown within the IDE. So I think there is no way to "export" these comments.

the selected file is not a valid solution file in microsoft visual studio 2012

I am using microsoft visual studio 2012, I double my solution file then get this error, I have tried by opening the file>Open>Project/Solution, then select the file name, but it still could not work and get the error as below:
the selected file is not a valid solution file
Try to open your .sln file.
most probably file may contain Null values or empty.
In my case it works after replacing .sln file with early backup .sln file.
Or try to get this file in TFS working version.
because it contain all your solution related data.
eg. VS version, class library details...

How to force Visual Studio not to add GlobalSection(Performance) section?

I played with Visual Studio builtin profiling tools and now every time I check out any file this section automatically adds to my solution file:
GlobalSection(Performance) = preSolution
HasPerformanceSessions = true
EndGlobalSection
I totally removed all profiling reports, then removed local copy of all source control files from this solution and update to latest. This section still in *.sln file after any checkout.
Other teammates who haven't used prfiler doesn't have this problem.
Has anyone any ideas?
Open the PerformanceExplorer in Visual Studio by using the Menu Analyze -> Windows -> PerformanceExplorer and check if it lists any session entries.
If so delete them by doing a right-click on an entry to open the ContextMenu. Then select "Remove" from the menu.
You should also check the folder of your solution if it contains any .vsp or .psess files and delete them. These are the report files of a profiling session.
Only way I could solve this was to close the solution, delete *.psess and *.vsp files from the root directory, reset my .sln file to the remote version and reopen the solution. Problem was then gone. This was using Visual Studio 2015 Community Edition.

Add existing xaml files to visual studio 2012

I want to add a folder containing xaml and cs files plus other directories to a different project on VS. For some reason when I drag the folder from windows explorer to the project where I will like to place that directory visual studio will not let me. Because of that I am manually adding each file and every time I encounter a directory I have to create it. Maybe it is because I am using team foundation server.
Anyways I am adding the files manually so I click on the folder that I want to add the files on visual studio then click on add existing files. Then I select the xaml and code behind file:
when I click add the files get added but visual studio does not recognize that Bytes.xaml.cs is the code behind!
Do I have to manually add a window then copy and paste the contents of the file?
Edit your .csproj file to add a "DependentUpon" element below your "Compile" element for the .xaml.cs file so that it will appear "inside" the .xaml file not simply below it.:
<Compile Include="BytesDisplay\SubControls\Bytes.xaml.cs">
<DependentUpon>Bytes.xaml</DependentUpon>
</Compile>
To easily edit the .csproj file:
Right-click the project and select "Unload Project"
Right-click the project node again and select "Edit [projectname].csproj"
Edit the XML, then close the file
Right-click the project node again and select "Reload Project"
If you drag-and-drop the .xaml file from Windows Explorer into the Solution Explorer window, it will automatically add the .xaml with the code-behind .cs file.
thanks for the write-up. If you edit the xaml and .cs files class declaration to match without class collisions - then when you add the .xaml file it will pick up the .xaml.cs automatically if it is on the same folder. (vs 2013)

How to highlight occurrences of a search term in text in Visual Studio 11 / 2012?

How to highlight occurrences of a search term in text in Visual Studio 11 / 2012? There are solutions in VS 2010 and 2008, any one know of one for VS2012?
The fix mentioned in the solution is to download the SelectionHighlight.vsix file then.
Change the Extension to .zip
Open the zip file and edit the manifest file in a text editor.
Change the Visual Studio Version attribute to 11.
After saving the file back into the zip, change the extension back to .vsix
Just move forward with installing the file and you are set.
okay... just checked a plugin for VS2010 and they have a "Fix" for 2012. Check the Q and A here: http://visualstudiogallery.msdn.microsoft.com/4b92b6ad-f563-4705-8f7b-7f85ba3cc6bb

Resources