Advertisement
Guest User

Untitled

a guest
Nov 25th, 2012
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.85 KB | None | 0 0
  1. <PropertyGroup>
  2. <CopyAllFilesToSingleFolderForPackageDependsOn>
  3. CustomCollectFiles;
  4. $(CopyAllFilesToSingleFolderForPackageDependsOn);
  5. </CopyAllFilesToSingleFolderForPackageDependsOn>
  6. </PropertyGroup>
  7.  
  8. <Target Name="CustomCollectFiles">
  9. <ItemGroup>
  10. <_CustomFiles Include="..Extra Files***" />
  11.  
  12. <FilesForPackagingFromProject Include="%(_CustomFiles.Identity)">
  13. <DestinationRelativePath>Extra Files%(RecursiveDir)%(Filename)%(Extension)</DestinationRelativePath>
  14. </FilesForPackagingFromProject>
  15. </ItemGroup>
  16. </Target>
  17.  
  18. <Import Project="$(MSBuildExtensionsPath32)MicrosoftVisualStudiov10.0WebApplicationsMicrosoft.WebApplication.targets" />
  19.  
  20. <ItemGroup>
  21. <ExcludeFromPackageFiles Include="Sample.Debug.xml">
  22. <FromTarget>Project</FromTarget>
  23. </ExcludeFromPackageFiles>
  24. </ItemGroup>
  25.  
  26. <PropertyGroup>
  27. <ExcludeFilesFromPackageDependsOn>
  28. $(ExcludeFilesFromPackageDependsOn);
  29. _ExcludeAzureDlls
  30. </ExcludeFilesFromPackageDependsOn>
  31. </PropertyGroup>
  32.  
  33. <Target Name="_ExcludeAzureDlls">
  34. <ItemGroup>
  35. <FilesForPackagingFromProjectWithNoAzure Include="@(FilesForPackagingFromProject)"
  36. Exclude="%(RootDir)%(Directory)*Azure*.dll" />
  37. <AzureFiles Include="@(FilesForPackagingFromProject)"
  38. Exclude="@(FilesForPackagingFromProjectWithNoAzure)" />
  39. <ExcludeFromPackageFiles Include="@(AzureFiles)">
  40. <FromTarget>_ExcludeAzureEnvironmentDlls</FromTarget>
  41. </ExcludeFromPackageFiles>
  42. </ItemGroup>
  43. </Target>
  44.  
  45. <Content Include="Bin3rdPartyNative.dll" />
  46.  
  47. <Target Name="BeforeBuild">
  48. <Message Text="Copy $(SolutionDir)Library3rdPartyNative.dll to '$(TargetDir)'3rdPartyNative.dll" Importance="high" />
  49. <Copy SourceFiles="$(SolutionDir)Library3rdPartyNative.dll" DestinationFiles="$(TargetDir)3rdPartyNative.dll" />
  50. </Target>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement