Click here to Skip to main content
15,884,473 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I was wondering if there is way to convert a C# class to its own project and it automatically keeps its references.
Posted
Comments
Sergey Alexandrovich Kryukov 3-Apr-14 15:31pm    
Define "convert". What should it be on output?
But why? why?!
—SA
Member 10622146 3-Apr-14 15:36pm    
I should of stated "move" instead of convert, since nothing needs to be changed A new project should be created in the solution and the class that I am trying to "move" should keep its references.
Sergey Alexandrovich Kryukov 3-Apr-14 15:36pm    
Sorry, again, it makes no sense at all. What is your ultimate goal?
—SA
Member 10622146 3-Apr-14 15:44pm    
My apologizes for the confusion, I have several projects in my solution file and, couple of my classes in one project are required in other projects. I cannot add references of project A to Project B and Project B to Project A, causing circular dependency. My goal is to take those classes out that I need for both projects to Project C. This way I can add a references and use them where I need them. I was just wondering if there is fast way to handle this.
Kornfeld Eliyahu Peter 3-Apr-14 16:05pm    
"fast way"? According you all the code is written. How much time it's take to create a new project, add some existing code to it and reference it from two existing projects? 5 minutes?!

1 solution

There is nothing like this in Visual Studio in its original bundle, and cannot be.

If you define what you want exactly, it would be quite possible to develop some Visual Studio Add-in project:
http://msdn.microsoft.com/en-us/library/80493a3w%28v=vs.110%29.aspx[^].

And I'm nearly sure such thing is not available even as an Add-in. Why? Because this idea hardly can make any practical sense.

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900