Files
semantic-kernel/dotnet/Directory.Build.props
Shawn Callegari 7a5f54bdf1 Clean up InternalsVisibleTo, add "Publish" target (#1056)
### Description
Removing unneeded PublicKey property on InternalsVisibleTo, and custom
implementation of InternalsVisibleTo tag, as neither are needed.

Added a new build configuration "Publish" that includes only the
shipping SDK projects. When setting configuration=Publish, sample apps
are excluded, and test projects are built but continue to target
Release. Only the assemblies under "/bin/Publish" are signed and packed.
2023-05-18 21:32:19 +00:00

38 lines
1.3 KiB
XML

<Project>
<PropertyGroup>
<!-- Default properties inherited by all projects. Projects can override. -->
<RunAnalyzersDuringBuild>true</RunAnalyzersDuringBuild>
<EnableNETAnalyzers>true</EnableNETAnalyzers>
<AnalysisMode>AllEnabledByDefault</AnalysisMode>
<AnalysisLevel>latest</AnalysisLevel>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<LangVersion>10</LangVersion>
<Nullable>enable</Nullable>
<ImplicitUsings>disable</ImplicitUsings>
</PropertyGroup>
<PropertyGroup>
<!-- Disable NuGet packaging by default. Projects can override. -->
<IsPackable>disable</IsPackable>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<DebugType>portable</DebugType>
</PropertyGroup>
<PropertyGroup>
<RepoRoot>$([System.IO.Path]::GetDirectoryName($([MSBuild]::GetPathOfFileAbove('.gitignore', '$(MSBuildThisFileDirectory)'))))</RepoRoot>
</PropertyGroup>
<ItemGroup>
<!-- Add CLSCompliant=false to all projects by default. Projects can override. -->
<AssemblyAttribute Include="System.CLSCompliantAttribute">
<_Parameter1>false</_Parameter1>
</AssemblyAttribute>
</ItemGroup>
</Project>