diff --git a/src/ReSharper.ExportAnnotations.Task/build/ReSharper.ExportAnnotations.Task.Building.targets b/src/ReSharper.ExportAnnotations.Task/build/ReSharper.ExportAnnotations.Task.Building.targets
new file mode 100644
index 0000000..216adda
--- /dev/null
+++ b/src/ReSharper.ExportAnnotations.Task/build/ReSharper.ExportAnnotations.Task.Building.targets
@@ -0,0 +1,89 @@
+
+
+
+ $(MSBuildAllProjects);$(MSBuildThisFileFullPath)
+
+
+
+
+ $(DefineConstants);
+ $(DefineConstants)JETBRAINS_ANNOTATIONS
+
+
+
+
+
+ <_ExportAnnotationsToolsDirectory>$([System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)..\tools))\
+
+ <_ExportAnnotationsCommand Condition="'$(MSBuildRuntimeType)' == 'Core'">dotnet
+ <_ExportAnnotationsCommand Condition="'$(MSBuildRuntimeType)' == 'Full'" />
+ <_ExportAnnotationsCommand Condition="'$(MSBuildRuntimeType)' == 'Mono'">mono
+
+ <_ExportAnnotationsExe Condition="'$(MSBuildRuntimeType)' == 'Core'">$(_ExportAnnotationsToolsDirectory)netcoreapp2.1\ExportAnnotations.dll
+ <_ExportAnnotationsExe Condition="'$(MSBuildRuntimeType)' == 'Full'">$(_ExportAnnotationsToolsDirectory)net471\ExportAnnotations.exe
+ <_ExportAnnotationsExe Condition="'$(MSBuildRuntimeType)' == 'Mono'">$(_ExportAnnotationsToolsDirectory)net471\ExportAnnotations.exe
+
+ <_ExportAnnotationsCommand>$(_ExportAnnotationsCommand)$(_ExportAnnotationsExe)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <_ExportAnnotationsLibraryList>$(IntermediateOutputPath)ExportAnnotations.libraries
+
+
+
+
+
+
+
+
+ <_ExportAnnotationsCommandLine>$(_ExportAnnotationsCommand) "%(IntermediateAssembly.FullPath)"
+ <_ExportAnnotationsCommandLine Condition="!$(ExportJetBrainsAnnotations)">$(_ExportAnnotationsCommandLine) --no-export
+ <_ExportAnnotationsCommandLine>$(_ExportAnnotationsCommandLine) --liblist "$(_ExportAnnotationsLibraryList)"
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <_FilesToDeleteBeforeRebuildingWithoutJetBrainsAnnotations Include="@(IntermediateAssembly)" />
+ <_FilesToDeleteBeforeRebuildingWithoutJetBrainsAnnotations Include="@(MainAssembly)" />
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/ReSharper.ExportAnnotations.Task/build/ReSharper.ExportAnnotations.Task.Rebuilding.targets b/src/ReSharper.ExportAnnotations.Task/build/ReSharper.ExportAnnotations.Task.Rebuilding.targets
new file mode 100644
index 0000000..15592f6
--- /dev/null
+++ b/src/ReSharper.ExportAnnotations.Task/build/ReSharper.ExportAnnotations.Task.Rebuilding.targets
@@ -0,0 +1,26 @@
+
+
+
+ $(MSBuildAllProjects);$(MSBuildThisFileFullPath)
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/ReSharper.ExportAnnotations.Task/build/ReSharper.ExportAnnotations.Task.targets b/src/ReSharper.ExportAnnotations.Task/build/ReSharper.ExportAnnotations.Task.targets
index 91e2922..9dc8622 100644
--- a/src/ReSharper.ExportAnnotations.Task/build/ReSharper.ExportAnnotations.Task.targets
+++ b/src/ReSharper.ExportAnnotations.Task/build/ReSharper.ExportAnnotations.Task.targets
@@ -1,104 +1,42 @@
-
+
$(MSBuildAllProjects);$(MSBuildThisFileFullPath)
-
-
-
- <_ExportAnnotationsToolsDirectory>$([System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)..\tools))\
-
- <_ExportAnnotationsCommand Condition="'$(MSBuildRuntimeType)' == 'Core'">dotnet
- <_ExportAnnotationsCommand Condition="'$(MSBuildRuntimeType)' == 'Full'" />
- <_ExportAnnotationsCommand Condition="'$(MSBuildRuntimeType)' == 'Mono'">mono
-
- <_ExportAnnotationsExe Condition="'$(MSBuildRuntimeType)' == 'Core'">$(_ExportAnnotationsToolsDirectory)netcoreapp2.1\ExportAnnotations.dll
- <_ExportAnnotationsExe Condition="'$(MSBuildRuntimeType)' == 'Full'">$(_ExportAnnotationsToolsDirectory)net471\ExportAnnotations.exe
- <_ExportAnnotationsExe Condition="'$(MSBuildRuntimeType)' == 'Mono'">$(_ExportAnnotationsToolsDirectory)net471\ExportAnnotations.exe
-
- <_ExportAnnotationsCommand>$(_ExportAnnotationsCommand)$(_ExportAnnotationsExe)
-
-
-
-
-
-
-
-
-
-
+
false
true
- true
+ false
-
+
- $(DefineConstants);
- $(DefineConstants)JETBRAINS_ANNOTATIONS
+ true
+ false
-
-
-
-
- <_ExportAnnotationsLibraryList>$(IntermediateOutputPath)ExportAnnotations.libraries
-
+
-
+
-
-
- <_ExportAnnotationsCommandLine>$(_ExportAnnotationsCommand) "%(IntermediateAssembly.FullPath)"
- <_ExportAnnotationsCommandLine Condition="!$(ExportJetBrainsAnnotations)">$(_ExportAnnotationsCommandLine) --no-export
- <_ExportAnnotationsCommandLine Condition="$(StripJetBrainsAnnotations)">$(_ExportAnnotationsCommandLine) --strip
- <_ExportAnnotationsCommandLine>$(_ExportAnnotationsCommandLine) --liblist "$(_ExportAnnotationsLibraryList)"
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
$(TargetsForTfmSpecificContentInPackage);_ExportAnnotations_IncludeExternalAnnotationsInPackage
-
-
+
+
+
\ No newline at end of file