Problem Description

Relative paths (..\..\..) in CSPROJ files are not being resolved correctly.

The csproj files have something like this:

<Compile Include="..\..\_Solutions\SharedAssemblyInfo.cs">
<Link>Properties\SharedAssemblyInfo.cs</Link>
</Compile>
<Compile Include="..\..\_Solutions\VersionInfo.cs">
<Link>Properties\VersionInfo.cs</Link>
</Compile>

Which generates the following warnings in the analysis log:

File 'e:\cast-ms\deploy\application blocks\application blocks source code\ab.cvcsc.ab.xmlvisualizer_Solutions\SharedAssemblyInfo.cs' referenced in project 'e:\cast-ms\deploy\application blocks\application blocks source code\ab\acvcsc.ab.xmlvisualizer\acvcsc.applicationblocks.xmlvisualizer.csproj' is missing.

File 'e:\cast-ms\deploy\application blocks\application blocks source code\ab.cvcsc.ab.xmlvisualizer_Solutions\VersionInfo.cs' referenced in project 'e:\cast-ms\deploy\application blocks\application blocks source code\ab\acvcsc.ab.xmlvisualizer\acvcsc.applicationblocks.xmlvisualizer.csproj' is missing.

Observed in CAST Extension Version


Release

Yes/No

1.0(tick) 
Observed in RDBMS

RDBMS

Yes/No

Oracle Server (tick) 
Microsoft SQL Server (tick) 
CSS3(tick) 
CSS2 (tick) 
Step by Step Scenario
  1. Package the source code
  2. Run the analysis
Impact on Analysis Results and Dashboard

Impact on the analysis would be the object belonging to the other csproj file which is missing would not be resolved and hence you will get missing objects and missing links issue

Action Plan
  1. Replace relative paths with absolute paths in the csproj file.
  2. If point 1 is not possible, then copy the file inside the project folder
  3. If the warnings are still coming, then contact CAST Technical Support. with the Relevant Input for reproduction of the issue
Notes/comments


Related Pages