My folder structure is as follows:
Folder
Classes
TestClass.cs
PlayerClass
PlayerClass.csproj
............
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!
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.