Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Closed 9 years ago.
Improve this question
I've been searching for how to duplicate a solution. In my case, I just want to move my solution to a new directory (it got created in the Visual Studio directory under "Projects" and I want it to be in the folder for the course I'm taking).
I understand there is the problem of absolute paths. But the only things that should have absolute paths are resources like pictures I'm using or stuff like that. I'd be happy to do those by hand.
To help me understand why it is so complicated, maybe someone can explain why there isn't simply a "save as" sort of option.
Here are two places I've looked at so far:
http://social.msdn.microsoft.com/forums/en-US/a0847416-392c-4ce3-8e9c-40cb7f0f2a27/visual-studio-c-how-to-copy-a-project
http://bytes.com/topic/c-sharp/answers/866577-how-copy-entire-visual-c-solution
Why can't save-as at least just update the automatically generated paths?
Just copy paste the entire solution directory to a different location.
Why can't save-as at least just update the automatically generated paths?
Because your solution can have items included from the "outside" (outside the solution root dir).
BTW, don't forget to manually change project guids if some projects from your solution_s_ can eventually end up in one (common) solution.
Related
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed last year.
Improve this question
If anyone could point me in the right direction not understanding why I see both namespaces in one project and not the other?
In the Solution Explorer in Visual Studio, shown right in your image, right-click on the Dependencies node right inside and first in the FABackEnd node. In the popup-menu, click on Add Project Reference... Then in the Projects list, check FADTO if it isn't checked already.
In the source shown there are several using statements at the top. Below these, add another using statement that looks like this.
using FADTO;
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 3 years ago.
Improve this question
I don't know if someone has already asked this simple question earlier as well. So, the question is I have a simple code test for one of my assignment, I want to use C# to solve the problem, and I am wondering if I build a new solution in C# with the main method to run the code within the solution, then it will contain probably an sln file and also csproj file and some other files as well. So will it be wise to submit the entire solution as zipping or upload in a repo for an assignment, or there are some other smarter ways to submit a code assignment while coding in visual studio in C#.
I don't want a logic or code for my assignment, I just expertise ideas I would say as I more of intermediate in .NET
TIA
I guess it depends on how your tutor is expecting / willing to receive it?
The modern (and arguably best in my opinion) way would be to push it to a repo. Otherwise you could go old school and zip up the whole folder structure (minus the bin and obj folders).
I think it's much better to keep code in one file.
You could try the Visual Studio Code editor to create one-file programs.
Or use the online C# compilers (.NET Fiddle, OnlineGDB). I personally use the online compilers, and then just store the code on my computer in *.cs files.
Just zip your whole project and upload it to the google drive. After uploading it into the drive you will get an option of sharing setting and through that you can feed the email id of the person whom you want to send it.. That link will be sent to that person and he/she can download it easily...
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 8 years ago.
Improve this question
I am sharing a C# project with a colleague so I have moved the entire folder containing the project to his PC. He are both running VS 2012. Anyway when opening the solution we get an error.
All the classes still have the path of the origin PC so when trying to run on the other one it is not able to find the class.
I don't know why this is happening. I want to use the classes in the folder not the ones in the origin PC. Even if they are exactly the same we don't have access to that PC now.
How can I fix this and tell VS to use the classes in the folder I have moved to the new PC?
EDIT
I have fixed the path so it is using the ones in the correct folder.
The main function is:
class MainClass
{
public static void Main()
{
myInputForm myInputForm1 = new myInputForm();
myInputForm1.ShowDialog(); // show interface to prompt user...
}
}
The error that occurs when the ShowDialog() method is called is:
An unhandled exception of type 'System.InvalidOperationException' occurred in System.Windows.Forms.dll
Additional information: dragdrop registration did not succeed.
If you open up your .csproj files in Notepad, you can edit the file paths directly. Generally you want to use relative paths rather than absolute paths so you don't run into this problem.
To see the difference between relative and absolute paths, look at the code examples in Which one is correct approach for assembly reference in csproj file?.
Make an account on Visual Studio Online for TFS Source Control and manage your project in source control. It is free for up to five users. Then you can share the project and both have copies of the source code.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
How can I tell the difference between source and published .NET code?
I am looking at some inherited code that I have not touched in about a year. The original designer had me first publish locally before uploading the published code to the internet server. Now I am looking a number of backed up source folders as well bas backed up published folders. I should have done a better job at naming the folders, I guess. Now I wonder: How can I tell the difference between source and published .NET code? Is there some easy way to see if some folder that contains only published code is lacking a file or xml setting?
As changes are made, they are published in the UI, so that means there should be some new files, or deleted files, and the directory tree may not be 100% the same. What you could do is download the deployed code to your local machine, and use a tool like Beyond Compare or some other directory comparer and let it determine the markup changes for you. There are several tools that do a good job for this.
That would give you an idea of the difference between files, but won't parse DLL's. That you would have to use a tool like reflector or Telerik's JustDecompile to compare the code, but I really wouldn't go that far, but you could.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I am connected to a project in TFS, After making my changes I checked in. I can now see the folders and files on the server in source control. However, all of my new files and changes to certain files are not available in my solution.
Error Message:
Error
TF10187:Could not open document
(Path)
The system cannot find the file specified
Use the Source Control Explorer, select your project and use the Get Latest Version command (a little icon with an arrow pointing at a clock). This will download all files missing on your local PC from TFS.