Add metadata for Visual Studio to link autogenned files
This commit is contained in:
parent
5d427af23b
commit
8031c7d029
1 changed files with 13 additions and 0 deletions
|
@ -708,6 +708,19 @@ public abstract class VSGenericTarget : ITarget
|
|||
|
||||
ps.WriteLine($" </Target>");
|
||||
|
||||
|
||||
ps.WriteLine("<ItemGroup>");
|
||||
ps.WriteLine("<None Update=\"" + node.Name + "\">");
|
||||
ps.WriteLine($"<LastGenOutput>{node.OutputName}</LastGenOutput>");
|
||||
ps.WriteLine("</None>");
|
||||
|
||||
ps.WriteLine("<Compile Update=\"" + node.OutputName + "\">");
|
||||
ps.WriteLine($"<DependentUpon>{node.Name}</DependentUpon>");
|
||||
ps.WriteLine("<DesignTime>True</DesignTime>");
|
||||
ps.WriteLine("<AutoGen>True</AutoGen>");
|
||||
ps.WriteLine("</Compile>");
|
||||
ps.WriteLine("</ItemGroup>");
|
||||
|
||||
count++;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue