|
6 | 6 | <RepoRoot>$(MSBuildThisFileDirectory)..\</RepoRoot>
|
7 | 7 | </PropertyGroup>
|
8 | 8 |
|
9 |
| - <Import Project="..\build\targets\GitHash.props" /> |
10 |
| - |
11 | 9 | <Choose>
|
12 | 10 | <When Condition="'$(Configuration)' == 'Debug' or '$(Configuration)' == 'Release' ">
|
13 | 11 | <PropertyGroup>
|
|
368 | 366 |
|
369 | 367 | </Target>
|
370 | 368 |
|
371 |
| - <PropertyGroup Condition="'$(Configuration)' != 'Proto'"> |
372 |
| - <GeneratedFSharpInternalsVisibleToFile>$(IntermediateOutputPath)$(MSBuildProjectName).InternalsVisibleTo$(DefaultLanguageSourceExtension)</GeneratedFSharpInternalsVisibleToFile> |
373 |
| - </PropertyGroup> |
374 |
| - |
375 |
| - <ItemDefinitionGroup> |
376 |
| - <InternalsVisibleTo> |
377 |
| - <Visible>false</Visible> |
378 |
| - </InternalsVisibleTo> |
379 |
| - </ItemDefinitionGroup> |
380 |
| - |
381 |
| - <Target Name="PrepareFSharpGenerateInternalsVisibleToFile" |
382 |
| - Condition="'$(Configuration)' != 'Proto' and '@(InternalsVisibleTo)' != ''"> |
383 |
| - <PropertyGroup> |
384 |
| - <_PublicKey>002400000480000094000000060200000024000052534131000400000100010007D1FA57C4AED9F0A32E84AA0FAEFD0DE9E8FD6AEC8F87FB03766C834C99921EB23BE79AD9D5DCC1DD9AD236132102900B723CF980957FC4E177108FC607774F29E8320E92EA05ECE4E821C0A5EFE8F1645C4C0C93C1AB99285D622CAA652C1DFAD63D745D6F2DE5F17E5EAF0FC4963D261C8A12436518206DC093344D5AD293</_PublicKey> |
385 |
| - </PropertyGroup> |
386 |
| - <ItemGroup> |
387 |
| - <_InternalsVisibleToAttribute Include="System.Runtime.CompilerServices.InternalsVisibleToAttribute"> |
388 |
| - <_Parameter1 Condition="'%(InternalsVisibleTo.Key)' != ''">%(InternalsVisibleTo.Identity), PublicKey=%(InternalsVisibleTo.Key)</_Parameter1> |
389 |
| - <_Parameter1 Condition="'%(InternalsVisibleTo.Key)' == ''">%(InternalsVisibleTo.Identity), PublicKey=$(_PublicKey)</_Parameter1> |
390 |
| - </_InternalsVisibleToAttribute> |
391 |
| - </ItemGroup> |
392 |
| - </Target> |
393 |
| - |
394 |
| - <Target Name="GenerateFSharpInternalsVisibleToFile" |
395 |
| - Inputs="$(MSBuildProjectFile)" |
396 |
| - Outputs="$(GeneratedFSharpInternalsVisibleToFile)" |
397 |
| - DependsOnTargets="PrepareFSharpGenerateInternalsVisibleToFile;PrepareForBuild" |
398 |
| - Condition="'$(Configuration)' != 'Proto' and '@(InternalsVisibleTo)' != ''" |
399 |
| - BeforeTargets="CoreCompile"> |
400 |
| - <WriteCodeFragment AssemblyAttributes="@(_InternalsVisibleToAttribute)" |
401 |
| - Language="$(Language)" |
402 |
| - OutputFile="$(GeneratedFSharpInternalsVisibleToFile)"> |
403 |
| - <Output TaskParameter="OutputFile" ItemName="CompileBefore" /> |
404 |
| - <Output TaskParameter="OutputFile" ItemName="FileWrites" /> |
405 |
| - </WriteCodeFragment> |
406 |
| - </Target> |
407 |
| - |
408 |
| - <Target Name="GenerateAssemblyFileVersion" |
409 |
| - BeforeTargets="CoreCompile" |
410 |
| - Condition="'$(Configuration)' != 'Proto'"> |
411 |
| - <PropertyGroup> |
412 |
| - <GeneratedFSharpAssemblyVersionFile>$(IntermediateOutputPath)$(MSBuildProjectName).AssemblyVersion$(DefaultLanguageSourceExtension)</GeneratedFSharpAssemblyVersionFile> |
413 |
| - <!-- AssemblyInformationalVersionAttribute issues a by-design warning if the value passed isn't of the form #.#.#.#, but we specifically want to suppress this to allow the commit hash to be embedded. --> |
414 |
| - <NoWarn Condition="'$(Language)' == 'F#'">2003;$(NoWarn)</NoWarn> |
415 |
| - </PropertyGroup> |
416 |
| - |
417 |
| - <ItemGroup> |
418 |
| - <_AssemblyVersionAttributes Include="System.Reflection.AssemblyCompanyAttribute"> |
419 |
| - <_Parameter1>Microsoft Corporation</_Parameter1> |
420 |
| - </_AssemblyVersionAttributes> |
421 |
| - <_AssemblyVersionAttributes Include="System.Reflection.AssemblyCopyrightAttribute"> |
422 |
| - <_Parameter1>© Microsoft Corporation. All Rights Reserved.</_Parameter1> |
423 |
| - </_AssemblyVersionAttributes> |
424 |
| - <_AssemblyVersionAttributes Include="System.Reflection.AssemblyDescriptionAttribute"> |
425 |
| - <_Parameter1>$(AssemblyName).dll</_Parameter1> |
426 |
| - </_AssemblyVersionAttributes> |
427 |
| - <_AssemblyVersionAttributes Include="System.Reflection.AssemblyFileVersionAttribute"> |
428 |
| - <_Parameter1>$(Build_FileVersion)</_Parameter1> |
429 |
| - </_AssemblyVersionAttributes> |
430 |
| - <_AssemblyVersionAttributes Include="System.Reflection.AssemblyInformationalVersionAttribute"> |
431 |
| - <_Parameter1>$(MicroBuildAssemblyVersion). Commit Hash: $(GitHeadSha).</_Parameter1> |
432 |
| - </_AssemblyVersionAttributes> |
433 |
| - <_AssemblyVersionAttributes Include="System.Reflection.AssemblyProductAttribute"> |
434 |
| - <_Parameter1>Microsoft® F#</_Parameter1> |
435 |
| - </_AssemblyVersionAttributes> |
436 |
| - <_AssemblyVersionAttributes Include="System.Reflection.AssemblyTitleAttribute"> |
437 |
| - <_Parameter1>$(AssemblyName).dll</_Parameter1> |
438 |
| - </_AssemblyVersionAttributes> |
439 |
| - <_AssemblyVersionAttributes Include="System.Reflection.AssemblyVersionAttribute"> |
440 |
| - <_Parameter1>$(MicroBuildAssemblyVersion)</_Parameter1> |
441 |
| - </_AssemblyVersionAttributes> |
442 |
| - </ItemGroup> |
443 |
| - |
444 |
| - <WriteCodeFragment AssemblyAttributes="@(_AssemblyVersionAttributes)" |
445 |
| - Language="$(Language)" |
446 |
| - OutputFile="$(GeneratedFSharpAssemblyVersionFile)"> |
447 |
| - <!-- For FSharp.Core, assembly version must be inserted after all Core files, as it defines F# basic types (strings) --> |
448 |
| - <Output TaskParameter="OutputFile" ItemName="Compile" Condition="'$(AssemblyName)' == 'FSharp.Core'" /> |
449 |
| - <!-- For other assemblies, this must be inserted before all source files, to keep exe's EntryPoints (if any) as the last source file --> |
450 |
| - <Output TaskParameter="OutputFile" ItemName="CompileBefore" Condition="'$(AssemblyName)' != 'FSharp.Core'" /> |
451 |
| - <Output TaskParameter="OutputFile" ItemName="FileWrites" /> |
452 |
| - </WriteCodeFragment> |
453 |
| - </Target> |
| 369 | + <Import Project="..\build\targets\AssemblyAttributes.targets" /> |
454 | 370 |
|
455 | 371 | <UsingTask TaskName="ReplaceFileText" TaskFactory="CodeTaskFactory" AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v4.0.dll">
|
456 | 372 | <ParameterGroup>
|
|
0 commit comments