The current ContenPathGenerator.tt template spits out a full path for assets in the root source folders:
class Content
{
public const string Cursor = @"C:\Users\user\GitHub\MyGame\MainProject\Content\cursor.png";
}
This is problematic because now references will not be portable. They should instead be relative. After making the change the generated file now prints the following for assets in the root source folder:
class Content
{
public const string Cursor = @"Content\cursor.png";
}
The current
ContenPathGenerator.tt
template spits out a full path for assets in the root source folders:This is problematic because now references will not be portable. They should instead be relative. After making the change the generated file now prints the following for assets in the root source folder:
Tested on VS 2022 on Windows 11