Skip to content

Commit

Permalink
Add target for check. Supposed to be in Microsoft.Managed.DesignTime.…
Browse files Browse the repository at this point in the history
…targets, but unsure.
  • Loading branch information
wasabii committed Mar 24, 2024
1 parent 78a94ec commit e397d58
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/IKVM.NET.Sdk/targets/IKVM.Java.DesignTime.targets
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
</PropertyGroup>

<Target Name="_CheckCompileDesignTimePrerequisite">
<Error Condition="'$(SkipCompilerExecution)|$(ProvideCommandLineArgs)' != 'true|true'" Text="SkipCompilerExecution and ProvideCommandLineArgs should be set before calling the CompileDesignTime target" />
</Target>

<PropertyGroup>
<ManagedDesignTimeTargetsPath Condition=" '$(ManagedDesignTimeTargetsPath)' == '' ">$(MSBuildExtensionsPath)\Microsoft\VisualStudio\Managed\Microsoft.Managed.DesignTime.targets</ManagedDesignTimeTargetsPath>
</PropertyGroup>
Expand All @@ -26,7 +30,7 @@
</PropertyPageSchema>
</ItemGroup>

<Target Name="CompileDesignTime" DependsOnTargets="_CheckCompileDesignTimePrerequisite;Compile">
<Target Name="CompileDesignTime" DependsOnTargets="_CheckCompileDesignTimePrerequisite;Compile" Condition=" '$(IsCrossTargetingBuild)' != 'true' ">
<Message Text="CompileDesignTime" />
</Target>

Expand Down

0 comments on commit e397d58

Please sign in to comment.