Silverlight MSBuild Task - execute command line after Xap copied to ClientBin

前端 未结 1 1777
日久生厌
日久生厌 2021-01-25 18:34

I have a silverlight project arranged as follows:

  • Examples
    • Silverlight
      • Bin
        • Debug
    • ExampleCode
相关标签:
1条回答
  • 2021-01-25 19:23

    You can work around this by adding your files to XapFilesInputCollection in an AfterCompile target of your Silverlight project. Note however that including a bin folder directly in the project may result with an access denied error when compiling in Visual Studio.

    <Target Name="AfterCompile">
      <ItemGroup>
        <XapFilesInputCollection Include="$(SolutionDir)Examples\Silverlight\Bin\$(Configuration)\ExampleCode"/>
      </ItemGroup>
    </Target>
    
    0 讨论(0)
提交回复
热议问题