-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Directory.Build.props. #2120
base: master
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<Project> | ||
<PropertyGroup> | ||
<TargetFramework>net8.0</TargetFramework> | ||
<Product>MQTTnet</Product> | ||
<Authors>The contributors of MQTTnet</Authors> | ||
<Company>The contributors of MQTTnet</Company> | ||
<Copyright>Copyright (c) .NET Foundation and Contributors</Copyright> | ||
|
||
<DelaySign>false</DelaySign> | ||
<SignAssembly>false</SignAssembly> | ||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> | ||
<EnableNETAnalyzers>false</EnableNETAnalyzers> | ||
<EnforceCodeStyleInBuild>false</EnforceCodeStyleInBuild> | ||
|
||
<NeutralLanguage>en-US</NeutralLanguage> | ||
<NoWarn>1591;NETSDK1138;NU1803;NU1901;NU1902</NoWarn> | ||
|
||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors> | ||
<NuGetAuditMode>all</NuGetAuditMode> | ||
<NuGetAudit>true</NuGetAudit> | ||
<NuGetAuditLevel>low</NuGetAuditLevel> | ||
<AnalysisLevel>latest-Recommended</AnalysisLevel> | ||
|
||
<PackageLicenseExpression>MIT</PackageLicenseExpression> | ||
<PackageProjectUrl>https://github.com/dotnet/MQTTnet</PackageProjectUrl> | ||
<RepositoryUrl>https://github.com/dotnet/MQTTnet.git</RepositoryUrl> | ||
<RepositoryType>git</RepositoryType> | ||
|
||
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. After enabling ContinuousIntegrationBuild, it affects the lower breakpoint of the upper-level project in Debug configuration. Can we add a condition here to enable it only in Release configuration? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Enabling ContinuousIntegrationBuild for RELEASE builds only sounds reasonable to be me because DEBUG builds are usually not built using the CI. They are only built on local machines. |
||
</PropertyGroup> | ||
|
||
<ItemGroup Condition="'$(GeneratePackageOnBuild)'=='true'"> | ||
<None Include="README.md" Condition="Exists('README.md')"> | ||
<Pack>True</Pack> | ||
<PackagePath>\</PackagePath> | ||
</None> | ||
<None Include="..\..\Images\nuget.png"> | ||
<Pack>True</Pack> | ||
<PackagePath>\</PackagePath> | ||
</None> | ||
</ItemGroup> | ||
|
||
<ItemGroup Condition="'$(IncludeSymbols)'=='true'"> | ||
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All"/> | ||
</ItemGroup> | ||
</Project> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,25 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net8.0</TargetFramework> | ||
<AssemblyName>MQTTnet.Server</AssemblyName> | ||
<RootNamespace>MQTTnet.Server</RootNamespace> | ||
<GeneratePackageOnBuild>True</GeneratePackageOnBuild> | ||
<Company>The contributors of MQTTnet</Company> | ||
<Product>MQTTnet</Product> | ||
<GenerateDocumentationFile>true</GenerateDocumentationFile> | ||
<Description>This is the server implementation of MQTTnet.</Description> | ||
<Authors>The contributors of MQTTnet</Authors> | ||
<PackageId>MQTTnet.Server</PackageId> | ||
<DelaySign>false</DelaySign> | ||
<SignAssembly>false</SignAssembly> | ||
<PublishRepositoryUrl>true</PublishRepositoryUrl> | ||
<IncludeSymbols>true</IncludeSymbols> | ||
<SymbolPackageFormat>snupkg</SymbolPackageFormat> | ||
<Copyright>Copyright (c) .NET Foundation and Contributors</Copyright> | ||
<PackageProjectUrl>https://github.com/dotnet/MQTTnet</PackageProjectUrl> | ||
<RepositoryUrl>https://github.com/dotnet/MQTTnet.git</RepositoryUrl> | ||
<RepositoryType>git</RepositoryType> | ||
<PackageTags>MQTT Message Queue Telemetry Transport MQTTClient MQTTServer Server MQTTBroker Broker NETStandard IoT InternetOfThings Messaging Hardware Arduino Sensor Actuator M2M ESP Smart Home Cities Automation Xamarin Blazor</PackageTags> | ||
<NeutralLanguage>en-US</NeutralLanguage> | ||
<EnableNETAnalyzers>false</EnableNETAnalyzers> | ||
<EnforceCodeStyleInBuild>false</EnforceCodeStyleInBuild> | ||
<PackageIcon>nuget.png</PackageIcon> | ||
<EmbedUntrackedSources>true</EmbedUntrackedSources> | ||
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild> | ||
<PackageLicenseExpression>MIT</PackageLicenseExpression> | ||
<DisableImplicitAspNetCoreAnalyzers>true</DisableImplicitAspNetCoreAnalyzers> | ||
<NoWarn>1591;NETSDK1138;NU1803;NU1901;NU1902</NoWarn> | ||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors> | ||
<NuGetAuditMode>all</NuGetAuditMode> | ||
<NuGetAudit>true</NuGetAudit> | ||
<NuGetAuditLevel>low</NuGetAuditLevel> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<Nullable>disable</Nullable> | ||
<AnalysisLevel>latest-Recommended</AnalysisLevel> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\MQTTnet\MQTTnet.csproj"/> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<None Include="..\..\Images\nuget.png"> | ||
<Pack>True</Pack> | ||
<PackagePath>\</PackagePath> | ||
</None> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All"/> | ||
</ItemGroup> | ||
|
||
</Project> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In my IDE, the latest-Recommended value causes hundreds of syntax errors.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://developercommunity.visualstudio.com/t/Code-Rules-that-were-Informational-are-n/10789409#TPIN-N10795393