Skip to content

Commit 4d2e028

Browse files
committed
Fix bad results on VS prebuild run
Design time build runs through very limited targets and does not provide any libraries so we can skip weaving. VS runs normal build at some point anyway so it should not hurt somebody but improve VS responsiveness and user experience.
1 parent 59b4d50 commit 4d2e028

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MSBuild/DataObjects.Net.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
Inputs="@(IntermediateAssembly -> '%(FullPath)')"
2222
Outputs="@(IntermediateAssembly -> '%(FullPath).weaver-stamp')"
2323
DependsOnTargets="ResolveAssemblyReferences;_CopyFilesMarkedCopyLocal;$(XtensiveOrmBuildDependsOn)"
24-
Condition="'$(XtensiveOrmSkipProcessing)'!='true'">
24+
Condition="'$(XtensiveOrmSkipProcessing)'!='true' AND '$(DesignTimeBuild)' != 'true'">
2525
<Error Condition="!Exists('$(XtensiveOrmWeaver)')"
2626
Text="Weaver is not found at '$(XtensiveOrmWeaver)'" />
2727
<Message Importance="low" Text="Using weaver at '$(XtensiveOrmWeaver)'" />

0 commit comments

Comments
 (0)