|
351 | 351 | <!--
|
352 | 352 | <BuildFilesToGenerate Include="$(DirBuildTemp)\MyFile.txt">
|
353 | 353 | <Template>$(DirTemplates)\MyTemplatefile.txt</Template>
|
| 354 | + <Encoding>UTF-8</Encoding> |
354 | 355 | </BuildFilesToGenerate>
|
355 | 356 | <BuildFilesToGenerate Include="$(DirBuildTemp)\MyOtherFile.txt">
|
356 | 357 | <Template>$(DirTemplates)\MyOtherTemplatefile.txt</Template>
|
357 | 358 | <Token>MyAdditionalTemplateParameter</Token>
|
358 | 359 | <ReplacementValue>MyAdditionalTemplateValue</ReplacementValue>
|
| 360 | + <Encoding>UTF-8</Encoding> |
359 | 361 | </BuildFilesToGenerate>
|
360 | 362 | -->
|
361 | 363 | </ItemGroup>
|
|
464 | 466 | -->
|
465 | 467 | <ShouldGenerateAssemblyBuildInfo>true</ShouldGenerateAssemblyBuildInfo>
|
466 | 468 | </PropertyGroup>
|
| 469 | + <!-- |
| 470 | + The ItemGroup defining the information for the generation of the InternalsVisibleAttribute. |
| 471 | + Three different ways of referencing the test projects public key are available. Test assemblies |
| 472 | + can be referenced by: |
| 473 | + - Providing the snk key that was / is used to sign the test assembly. This is mainly of use |
| 474 | + for test assemblies which are compiled at the same time as the target assemblies, i.e. test |
| 475 | + assemblies that are part of the same Visual Studio solution. |
| 476 | + - Providing the signed test assembly. This is mainly of use for test assemblies that have been |
| 477 | + compiled prior to compiling the target assemblies, e.g. third party test assemblies. |
| 478 | + - Providing the full public key for the assembly. This is mainly of use for assemblies that |
| 479 | + do not exists on disk, e.g. assemblies that are dynamically generated. |
| 480 | + Multiple projects can be referenced in the 'projects' section by separating them with a semi-colon (;). Whitespace |
| 481 | + can be added if required but it has no influence on the project list. |
| 482 | + If the assemblies are not signed it is possible to leave out the signing information, e.g. the 'KeyFile' |
| 483 | + property, the 'AssemblyFromPackage' property and the 'PublicKey' property. |
| 484 | + --> |
| 485 | + <PropertyGroup> |
| 486 | + <!-- |
| 487 | + Defines the compiler constants for which the InternalsVisibleTo attributes should |
| 488 | + be generated. |
| 489 | + Separate multiple compiler constants with semi-colons. |
| 490 | + --> |
| 491 | + <!-- <InternalsVisibletoCompilerConstants>$(TestConfiguration.ToUpper())</InternalsVisibletoCompilerConstants> --> |
| 492 | + </PropertyGroup> |
| 493 | + <ItemGroup> |
| 494 | + <InternalsVisibleTo Include="Test.Unit.Storage"> |
| 495 | + <Projects> |
| 496 | + Metamorphic.Storage; |
| 497 | + </Projects> |
| 498 | + </InternalsVisibleTo> |
| 499 | + </ItemGroup> |
467 | 500 |
|
468 | 501 | <!-- Build configuration -->
|
469 | 502 | <PropertyGroup>
|
|
514 | 547 | The ItemGroup items that define which files contain the unit test cases. Paths can include build templates,
|
515 | 548 | e.g. $(DirBuildBinPlatformConfig)\${VersionMajor}.0\**\test*.dll
|
516 | 549 | -->
|
517 |
| - <!-- <UnitTestAssemblies Include="$(DirSrc)\**\bin\**\$(UnitTestAssemblyNamePrefix)*.dll" /> --> |
| 550 | + <!-- <UnitTestAssemblies Include="$(DirSrc)\**\bin\$(Configuration)\**\$(UnitTestAssemblyNamePrefix)*.dll" /> --> |
518 | 551 | </ItemGroup>
|
519 | 552 | <ItemGroup>
|
520 | 553 | <!--
|
|
767 | 800 | <!--
|
768 | 801 | The full path to the sn.exe command line executable.
|
769 | 802 | -->
|
770 |
| - <!-- <ToolsExternalSnPath Condition=" '$(ToolsExternalSnPath)' == '' ">UNDEFINED</ToolsExternalSnPath>--> |
| 803 | + <!-- |
| 804 | + <ToolsExternalSnPath Condition=" '$(ToolsExternalSnPath)' == '' AND Exists('C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.1 Tools\x64\sn.exe')">C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.1 Tools\x64\sn.exe</ToolsExternalSnPath> |
| 805 | + <ToolsExternalSnPath Condition=" '$(ToolsExternalSnPath)' == '' AND Exists('C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6 Tools\x64\sn.exe')">C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6 Tools\x64\sn.exe</ToolsExternalSnPath> |
| 806 | + <ToolsExternalSnPath Condition=" '$(ToolsExternalSnPath)' == '' AND Exists('C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A\bin\NETFX 4.5.1 Tools\x64\sn.exe')">C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A\bin\NETFX 4.5.1 Tools\x64\sn.exe</ToolsExternalSnPath> |
| 807 | + <ToolsExternalSnPath Condition=" '$(ToolsExternalSnPath)' == '' AND Exists('C:\Program Files (x86)\Microsoft SDKs\Windows\v8.0A\bin\NETFX 4.0 Tools\x64\sn.exe')">C:\Program Files (x86)\Microsoft SDKs\Windows\v8.0A\bin\NETFX 4.0 Tools\x64\sn.exe</ToolsExternalSnPath> |
| 808 | + <ToolsExternalSnPath Condition=" '$(ToolsExternalSnPath)' == '' AND Exists('C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\x64\sn.exe')">C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\x64\sn.exe</ToolsExternalSnPath> |
| 809 | + <ToolsExternalSnPath Condition=" '$(ToolsExternalSnPath)' == '' ">UNDEFINED</ToolsExternalSnPath> |
| 810 | + --> |
771 | 811 |
|
772 | 812 | <!--
|
773 | 813 | The full path to the SourceMonitor command line executable. If not defined the packages directory is searched.
|
|
0 commit comments