Merge pull request #87 from Azure/fixReferences
Fixing the copying of application dll
This commit is contained in:
Коммит
797869f0ec
|
@ -21,20 +21,46 @@ WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and
|
||||||
<Target Name="_GenerateFunctionsPostBuild"
|
<Target Name="_GenerateFunctionsPostBuild"
|
||||||
AfterTargets="Build">
|
AfterTargets="Build">
|
||||||
|
|
||||||
<!-- Copy the application dll to bin -->
|
<!-- TODO: CopyFilesToOutputDirectory does not look at the outdir to copy the pdbs. hence copying it manually. -->
|
||||||
<Move SourceFiles="$(TargetPath)"
|
<!-- Copy the application pdb to the bin folder-->
|
||||||
DestinationFiles="$(TargetDir)\bin\$(TargetFileName)"
|
<Move SourceFiles="$(TargetDir)\$(TargetName).pdb"
|
||||||
OverwriteReadOnlyFiles="true" />
|
DestinationFiles="$(TargetDir)\bin\$(TargetName).pdb"
|
||||||
|
OverwriteReadOnlyFiles="true"
|
||||||
|
Condition="Exists('$(TargetDir)\$(TargetName).pdb')" />
|
||||||
|
|
||||||
<!-- Copy the application dll pdb to bin -->
|
|
||||||
<Move SourceFiles="$(TargetDir)$(TargetName).pdb"
|
|
||||||
DestinationFiles="$(TargetDir)\bin\$(TargetName).pdb"
|
|
||||||
OverwriteReadOnlyFiles="true" />
|
|
||||||
|
|
||||||
<BuildFunctions
|
<BuildFunctions
|
||||||
TargetPath="$(TargetDir)\bin\$(TargetFileName)"
|
TargetPath="$(TargetPath)"
|
||||||
OutputPath="$(TargetDir)"/>
|
OutputPath="$(TargetDir)"/>
|
||||||
|
|
||||||
|
</Target>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
============================================================
|
||||||
|
_FunctionsBeforeCopyFilesToOutputDirectory
|
||||||
|
|
||||||
|
Sets the correct runtime folder for functions
|
||||||
|
============================================================
|
||||||
|
-->
|
||||||
|
<Target Name="_FunctionsBeforeCopyFilesToOutputDirectory"
|
||||||
|
BeforeTargets="CopyFilesToOutputDirectory">
|
||||||
|
<PropertyGroup>
|
||||||
|
<BackUpOutDirPropertyValue>$(OutDir)</BackUpOutDirPropertyValue>
|
||||||
|
<OutDir>$(OutDir)bin\</OutDir>
|
||||||
|
</PropertyGroup>
|
||||||
|
</Target>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
============================================================
|
||||||
|
_FunctionsAfterCopyFilesToOutputDirectory
|
||||||
|
|
||||||
|
Resets the correct runtime folder for functions
|
||||||
|
============================================================
|
||||||
|
-->
|
||||||
|
<Target Name="_FunctionsAfterCopyFilesToOutputDirectory"
|
||||||
|
AfterTargets="CopyFilesToOutputDirectory">
|
||||||
|
<PropertyGroup>
|
||||||
|
<OutDir>$(BackUpOutDirPropertyValue)</OutDir>
|
||||||
|
</PropertyGroup>
|
||||||
</Target>
|
</Target>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
|
@ -96,6 +122,7 @@ WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and
|
||||||
DestinationSubDirectory="$(RefAssembliesFolderName)\"/>
|
DestinationSubDirectory="$(RefAssembliesFolderName)\"/>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
<!-- Force the binaries to be copied to the bin folder.-->
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ReferenceCopyLocalPaths>
|
<ReferenceCopyLocalPaths>
|
||||||
<DestinationSubDirectory>bin\%(ReferenceCopyLocalPaths.DestinationSubDirectory)</DestinationSubDirectory>
|
<DestinationSubDirectory>bin\%(ReferenceCopyLocalPaths.DestinationSubDirectory)</DestinationSubDirectory>
|
||||||
|
@ -105,7 +132,12 @@ WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and
|
||||||
<DestinationSubPath>bin\%(ResolvedAssembliesToPublish.DestinationSubPath)</DestinationSubPath>
|
<DestinationSubPath>bin\%(ResolvedAssembliesToPublish.DestinationSubPath)</DestinationSubPath>
|
||||||
</ResolvedAssembliesToPublish>
|
</ResolvedAssembliesToPublish>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
<!-- Target path needs to point to the correct dll so that P2P references work. -->
|
||||||
|
<PropertyGroup>
|
||||||
|
<TargetPath>$(TargetDir)\bin\$(TargetFileName)</TargetPath>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
</Target>
|
</Target>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
|
|
|
@ -127,14 +127,14 @@ WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and
|
||||||
-->
|
-->
|
||||||
<Target Name="_GenerateFunctionsAndCopyContentFiles">
|
<Target Name="_GenerateFunctionsAndCopyContentFiles">
|
||||||
|
|
||||||
<!-- Copy the application dll to the bin folder-->
|
<ItemGroup>
|
||||||
<Move SourceFiles="$(PublishDir)\$(TargetFileName)"
|
<FunctionsPublishAssemblies Include="$(PublishDir)\*.dll;
|
||||||
DestinationFiles="$(PublishDir)\bin\$(TargetFileName)"
|
$(PublishDir)\*.pdb" />
|
||||||
OverwriteReadOnlyFiles="true" />
|
</ItemGroup>
|
||||||
|
|
||||||
<!-- Copy the application pdb to the bin folder-->
|
<!-- Copy the additional assemblies to the bin folder-->
|
||||||
<Move SourceFiles="$(PublishDir)\$(TargetName).pdb"
|
<Move SourceFiles="@(FunctionsPublishAssemblies)"
|
||||||
DestinationFiles="$(PublishDir)\bin\$(TargetName).pdb"
|
DestinationFiles="$(PublishDir)\bin\%(Filename)%(Extension)"
|
||||||
OverwriteReadOnlyFiles="true" />
|
OverwriteReadOnlyFiles="true" />
|
||||||
|
|
||||||
<BuildFunctions
|
<BuildFunctions
|
||||||
|
|
Загрузка…
Ссылка в новой задаче