开发者

Adding an item that is in a parent directory in Visual Studio C# 2010

My folder structure is as follows:

Folder

      Classes

            TestClass.cs

      PlayerClass

            PlayerClass.csproj

     &开发者_如何学编程nbsp;      ............

When i go to PlayerClass => Add Existing Item and finds TestClass.cs it copies it to the PlayerClass folder. When i edit it in my project it saves it to "Folder/PlayerClass/TestClass.cs"

But i want it to save to "Folder/Classes/TestClass.cs" And i can't use "../Classes/TestClass.cs" to define the file!

Any Ideas?

Ok, i found out how to do it. When you select the files there is a button called "Add". You should press on the triangle next to it and press "Add As Link" and it works!


Looks like you found the answer, hopefully the below will help anyone else.

http://cf-bill.blogspot.com/2007/10/visual-studio-sharing-one-file-between.html


Ok, i found out how to do it. When you select the files there is a button called "Add". You should press on the triangle next to it and press "Add As Link" and it works!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜