Skip to content

Commit 1472ff9

Browse files
committed
Fix props for the time referred from T4.
When a project refereed T4 with Roslyn workspace API, $OutputPath and $TargetFramework property become empty. It causes formatting $DocumentationFile UNC like path and causes T4 error. This commit add workaround for it.
1 parent 57276b0 commit 1472ff9

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

MsgPack.Common.props

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,10 @@
3939
<PropertyGroup Condition="'$(TargetFramework)' == 'MonoAndroid10' or '$(TargetFramework)' == 'Xamarin.iOS10'">
4040
<SignAssembly>false</SignAssembly>
4141
</PropertyGroup>
42-
<PropertyGroup>
42+
<PropertyGroup Condition="'$(OutputPath)' == '' and '$(TargetFramework)' == ''">
43+
<DocumentationFile>$(AssemblyName).XML</DocumentationFile>
44+
</PropertyGroup>
45+
<PropertyGroup Condition="'$(OutputPath)' != '' or '$(TargetFramework)' != ''">
4346
<DocumentationFile>$(OutputPath)\$(TargetFramework)\$(AssemblyName).XML</DocumentationFile>
4447
</PropertyGroup>
4548
<PropertyGroup Condition="'$(TargetFramework)' == 'uap10.0'">

0 commit comments

Comments
 (0)