VS 2008 - Using Relative Paths in Assembly Properties

In short, I have a test project file (C # project) that contains NUnit assemblies. When I press F5, the assembly properties say that the project starts NUnit and runs the corresponding tests.

However, I work with the team, and this project (including NUnit binaries) is in subversive activities. This means that when my partner pulls it elsewhere, the path to NUnit is different and therefore it is interrupted.

Is there a constant "% PROJECTDIR%" or something that I can use in the properties of the assembly to refer to the NUnit EXE file and make it work?

Thanks in advance for any help you can give, Shawn.

+4
source share
1 answer
  • Go to Project - ProjectName settings
  • Select build events
  • Click Edit Pre-build ... or Edit Post-build ...
  • Click Macros →
  • Double click on the path or file that you need.
+2
source

Source: https://habr.com/ru/post/1304149/