- Add your new project to the Axe.Windows Solution (
src\AxeWindows.sln). - Before creating a pull request, verify that Visual Studio can successfully load and build the entire solution in both Debug and Release.
- If your project requires NuGet dependencies which need to be installed alongside it, update the section of
./src/ci/axe.windows.nuspec.
- Right-click on the project and select Properties.
- In the Application tab, configure "Target Framework" to use the same .NET Framework version used by the
axe.windows.coreproject, currently .NET Framework 4.7.1. - In the build tab, set the following for both Debug and Release configurations:
- "Warning level" to 4.
- "Treat warnings as errors" to "All".
- Add the following NuGet packages in Visual Studio to enable signing and code analysis:
Microsoft.VisualStudioEng.MicroBuild.Core Microsoft.CodeAnalysis.FxCopAnalyzers - Close the solution and use your text editor to make the following changes to your
.csprojfile to properly configure the version and signing options:- Add the following line alongside the existing
<Compile>statements:
<Compile Include="$(TEMP)\AxeWindowsVersionInfo.cs" /> - Add the following below the last ItemGroup:
<ItemGroup> <DropSignedFile Include="$(TargetPath)" /> </ItemGroup> <Import Project="..\..\build\settings.targets" /> - Add the following line alongside the existing
- Use your text editor to make the following changes to your project's
Properties\AssemblyInfofile to set the correct version:- Remove the following lines, as well as the commented lines above them:
[assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyFileVersion("1.0.0.0")]
- Remove the following lines, as well as the commented lines above them:
- Close the solution and use your text editor to add the following line to your
.csprojfile to properly configure Strong Naming for your assembly:
<Import Project="..\..\build\delaysign.targets" /> - Build the entire solution in both Debug and Release. Ensure that the tests are appropriately discovered in the test explorer, and that they all run successfully.
In a text editor, add the following line:
<Import Project="..\..\build\NetStandardRelease.targets" />
In a text editor, add the following line:
<Import Project="..\..\build\NetStandardTest.targets" />