mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
d0531bb93b
* Add skeleton dotnet project structure * Fix casing in import statement. * Moving tests folder to be a sibling of src. * Update tests to use directory.builds.props and only build necessary frameworks. * Move more test props to directory.build.props * Add AotCompatible flag and .net 8.0 * Rename Tests to UnitTests * Add global.json file * Update publish mapping for unit tests to debug, to reduce build times.
14 lines
832 B
XML
14 lines
832 B
XML
<Project>
|
|
<!-- Direct all packages under 'dotnet' to get versions from Directory.Packages.props -->
|
|
<!-- using Central Package Management feature -->
|
|
<!-- https://learn.microsoft.com/en-us/nuget/consume-packages/Central-Package-Management -->
|
|
<Sdk Name="Microsoft.Build.CentralPackageVersions" Version="2.1.3" />
|
|
<!-- Only run 'dotnet format' on dev machines, Release builds. Skip on GitHub Actions -->
|
|
<!-- as this runs in its own Actions job. -->
|
|
<Target Name="DotnetFormatOnBuild" BeforeTargets="Build"
|
|
Condition=" '$(Configuration)' == 'Release' AND '$(GITHUB_ACTIONS)' == '' AND '$(TargetFramework)' == '$(ProjectsDebugTargetFrameworks)'">
|
|
<Message Text="Running dotnet format" Importance="high" />
|
|
<Exec Command="dotnet format --no-restore -v diag $(ProjectFileName)" />
|
|
</Target>
|
|
</Project>
|