How to change value of <Reference> persistent inside .rxtst
Posted: Tue Nov 07, 2017 4:05 pm
Hi Ranorex-Team,
I got "ProjectA.csproj" with a reference "Dependency.dll", since I have on production system that reference, I set "Copy to ouput" false.
When I add the reference via Ranorex, then it will write inside the csproj file:
Also in the .rxtst it will write:
I found out Ranorex loads the "Dependency.dll" from the path provided inside the .rxtst
When I start my "ProjectA.exe" (build with ranorex) on my development machine, where the "Dependency.dll" is also installed in some folder (what the application loads at a later point), THEN, Ranorex loads it from the path provided in the .rxtst file, because if I delete inside my .rxtst (located in the bin\Release) the paths:
New .rxtst file
Then, I see with ProcExp that the assembly from "Resources\References\" will NOT be loaded anymore.
Unfortunately, if I want in my real .rxtst (and not in the bin\Release) to change theses values permanently, I tried again to change them via Notepad, but they are ovverriden when someone opens with Ranorex the project with the "HintPath" from the .csproj.
How could I make the paths of my references inside the .rxtst persistent?
Project Structure relative from .csproj:
OUTPUT: bin\Release
REFERENCES: Resources\References
Thanks,
Patrick
I got "ProjectA.csproj" with a reference "Dependency.dll", since I have on production system that reference, I set "Copy to ouput" false.
When I add the reference via Ranorex, then it will write inside the csproj file:
Code: Select all
<Reference Include="Dependency">
<HintPath>Resources\References\Dependency.dll</HintPath>
<Private>False</Private>
</Reference>
Code: Select all
<reference>
..\..\Resources\References\Dependency.dll
</reference>
When I start my "ProjectA.exe" (build with ranorex) on my development machine, where the "Dependency.dll" is also installed in some folder (what the application loads at a later point), THEN, Ranorex loads it from the path provided in the .rxtst file, because if I delete inside my .rxtst (located in the bin\Release) the paths:
New .rxtst file
Code: Select all
<reference>
Dependency.dll
</reference>
Unfortunately, if I want in my real .rxtst (and not in the bin\Release) to change theses values permanently, I tried again to change them via Notepad, but they are ovverriden when someone opens with Ranorex the project with the "HintPath" from the .csproj.
How could I make the paths of my references inside the .rxtst persistent?
Project Structure relative from .csproj:
OUTPUT: bin\Release
REFERENCES: Resources\References
Thanks,
Patrick