|
366 | 366 | <UsingTaskTaskName="FSharpEmbedResXSource" |
367 | 367 | AssemblyFile="$(FSharpSourcesRoot)\..\Proto\net40\bin\FSharp.Build-proto.dll" |
368 | 368 | Condition="'$(Configuration)' != 'Proto'" /> |
| 369 | + <UsingTaskTaskName="WriteCodeFragment" |
| 370 | +AssemblyFile="$(FSharpSourcesRoot)\..\Proto\net40\bin\FSharp.Build-proto.dll" |
| 371 | +Condition="'$(Configuration)' != 'Proto'" /> |
369 | 372 |
|
370 | 373 | <TargetName="GenerateFSharpTextResources" |
371 | 374 | BeforeTargets="CoreResGen;PrepareForBuild" |
|
396 | 399 |
|
397 | 400 | </Target> |
398 | 401 |
|
| 402 | + <PropertyGroupCondition="'$(Configuration)' != 'Proto'"> |
| 403 | + <GeneratedFSharpInternalsVisibleToFile>$(IntermediateOutputPath)$(MSBuildProjectName).InternalsVisibleTo$(DefaultLanguageSourceExtension)</GeneratedFSharpInternalsVisibleToFile> |
| 404 | + </PropertyGroup> |
| 405 | + |
| 406 | + <ItemDefinitionGroup> |
| 407 | + <InternalsVisibleTo> |
| 408 | + <Visible>false</Visible> |
| 409 | + </InternalsVisibleTo> |
| 410 | + </ItemDefinitionGroup> |
| 411 | + |
| 412 | + <TargetName="PrepareFSharpGenerateInternalsVisibleToFile" |
| 413 | +Condition="'$(Configuration)' != 'Proto' and '@(InternalsVisibleTo)' != ''"> |
| 414 | + <PropertyGroup> |
| 415 | + <_PublicKey>002400000480000094000000060200000024000052534131000400000100010007D1FA57C4AED9F0A32E84AA0FAEFD0DE9E8FD6AEC8F87FB03766C834C99921EB23BE79AD9D5DCC1DD9AD236132102900B723CF980957FC4E177108FC607774F29E8320E92EA05ECE4E821C0A5EFE8F1645C4C0C93C1AB99285D622CAA652C1DFAD63D745D6F2DE5F17E5EAF0FC4963D261C8A12436518206DC093344D5AD293</_PublicKey> |
| 416 | + </PropertyGroup> |
| 417 | + <ItemGroup> |
| 418 | + <_InternalsVisibleToAttributeInclude="System.Runtime.CompilerServices.InternalsVisibleToAttribute"> |
| 419 | + <_Parameter1Condition="'%(InternalsVisibleTo.Key)' != ''">%(InternalsVisibleTo.Identity), PublicKey=%(InternalsVisibleTo.Key)</_Parameter1> |
| 420 | + <_Parameter1Condition="'%(InternalsVisibleTo.Key)' == ''">%(InternalsVisibleTo.Identity), PublicKey=$(_PublicKey)</_Parameter1> |
| 421 | + </_InternalsVisibleToAttribute> |
| 422 | + </ItemGroup> |
| 423 | + </Target> |
| 424 | + |
| 425 | + <TargetName="GenerateFSharpInternalsVisibleToFile" |
| 426 | +Inputs="$(MSBuildProjectFile)" |
| 427 | +Outputs="$(GeneratedFSharpInternalsVisibleToFile)" |
| 428 | +DependsOnTargets="PrepareFSharpGenerateInternalsVisibleToFile;PrepareForBuild" |
| 429 | +Condition="'$(Configuration)' != 'Proto' and '@(InternalsVisibleTo)' != ''" |
| 430 | +BeforeTargets="CoreCompile"> |
| 431 | + <WriteCodeFragmentAssemblyAttributes="@(_InternalsVisibleToAttribute)" |
| 432 | +Language="$(Language)" |
| 433 | +OutputFile="$(GeneratedFSharpInternalsVisibleToFile)"> |
| 434 | + <OutputTaskParameter="OutputFile"ItemName="CompileBefore" /> |
| 435 | + <OutputTaskParameter="OutputFile"ItemName="FileWrites" /> |
| 436 | + </WriteCodeFragment> |
| 437 | + </Target> |
| 438 | + |
399 | 439 | <!-- |
400 | 440 | <UsingTask TaskName="ReplaceFileText" TaskFactory="CodeTaskFactory" AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v4.0.dll"> |
401 | 441 | <ParameterGroup> |
|