Hello!
I'm using Unity + VSTU + VisualStudio 2012 Pro.
Unity's project contains symlinks, that are created by custom script, and generates VS project that I'm working in.
But whenever opened in VS source code file changed outside VS (updated from version control), studio does not claim to reopen it, and allows me to work with file's local copy. Often happens sad thing: my local changes override incoming ones, data lost occurs.
Real file path: Project/VersionedWorkingCopy/SomeFolder/RealFile.cs
Project path: Project/GeneratedProjectFolder/SymlinkToSomeFolder/RealFile.cs
"GeneratedProjectFolder" is the working folder for Unity and VS. VS's project generated by Unity, so I can just postprocess generation and add something like this:
<Compile Include="GeneratedProjectFolder\SymlinkToSomeFolder\RealFile.cs" >
<Link>..\VersionedWorkingCopy\SomeFolder\RealFile.cs</Link>
</Compile>
Actually, this doesn't work, saying
"The file 'GeneratedProjectFolder\SymlinkToSomeFolder\RealFile.cs' could not be added to the project. The specified path contains invalid characters, is an absolute path, or is a path outside of the project directory."
Using symlinks is critical for my project.
Thanks!