You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you use <FileConstant Include="FULL_PATH" />, you will get a compilation error.
This happens because we attempt to use %(RelativeDir) to build the area, and things go awry if the path is absolute.
It's quite common for files to be included and linked, when sourced from an absolute path, so that the copying to the output directory is a certain relative path. We should detect this condition and use the link instead of the RelativeDir and Filename/Extension in that case.
It's not uncommon to include files from outside the current project cone by linking them so they get properly copied to a desired output location (or shown in the project structure properly). If a `%(Link)` is present, use that instead of `RelativeDir` to determine the constant area and value to generate.
Fixes#38
It's not uncommon to include files from outside the current project cone by linking them so they get properly copied to a desired output location (or shown in the project structure properly). If a `%(Link)` is present, use that instead of `RelativeDir` to determine the constant area and value to generate.
Fixes#38
If you use
<FileConstant Include="FULL_PATH" />
, you will get a compilation error.This happens because we attempt to use
%(RelativeDir)
to build the area, and things go awry if the path is absolute.It's quite common for files to be included and linked, when sourced from an absolute path, so that the copying to the output directory is a certain relative path. We should detect this condition and use the link instead of the RelativeDir and Filename/Extension in that case.
Examples:
should result in a constant
ThisAssembly.Constants.Content.data = @"Content\data.txt";
The text was updated successfully, but these errors were encountered: