diff --git a/Build.props b/Build.props index 2d7fd55..622ea1a 100644 --- a/Build.props +++ b/Build.props @@ -1,12 +1,14 @@ - - - - $(MSBuildAllProjects);$(MSBuildThisFileFullPath) - + + - - $(MSBuildThisFileDirectory.TrimEnd('\')) + $(MSBuildAllProjects);$(MSBuildThisFileFullPath) + $(MSBuildThisFileDirectory.TrimEnd('\')) diff --git a/src/AssemblyInfo/AssemblyInfoCommon.cs b/src/AssemblyInfo/AssemblyInfoCommon.cs index c84aff8..76623c2 100644 --- a/src/AssemblyInfo/AssemblyInfoCommon.cs +++ b/src/AssemblyInfo/AssemblyInfoCommon.cs @@ -12,7 +12,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using System.Security; -[assembly: AssemblyCompany("Microsoft Corporation")] +// [assembly: AssemblyCompany("Microsoft Corporation")] // If you want to control this metadata globally but not with the VersionProductName property, hard-code the value below. // If you want to control this metadata at the individual project level with AssemblyInfo.cs, comment-out the line below. // If you leave the line below unchanged, make sure to set the property in the root build.props, e.g.: Your Product Name @@ -20,15 +20,12 @@ using System.Security; [assembly: AssemblyCopyright("Copyright (c) Microsoft Corporation. All rights reserved.")] [assembly: AssemblyTrademark("Microsoft and Windows are either registered trademarks or trademarks of Microsoft Corporation in the U.S. and/or other countries.")] [assembly: AssemblyCulture("")] + +/* #if (DEBUG || _DEBUG) [assembly: AssemblyConfiguration("Debug")] #endif - -#if ASSEMBLY_ATTRIBUTE_PRODUCT_VS -[assembly: AssemblyProduct("Microsoft (R) Visual Studio (R) 2010")] -#else -[assembly: AssemblyProduct("Microsoft® .NET Framework")] -#endif +*/ // disable CLSCompliant as the common extensions library decided not to support this // see https://github.com/aspnet/AspNetCore/issues/2689#issuecomment-354693946 diff --git a/src/AssemblyInfo/AssemblyMetadataAttribute.cs b/src/AssemblyInfo/AssemblyMetadataAttribute.cs deleted file mode 100644 index a436c0d..0000000 --- a/src/AssemblyInfo/AssemblyMetadataAttribute.cs +++ /dev/null @@ -1,21 +0,0 @@ -//--------------------------------------------------------------------- -// -// Copyright (C) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information. -// -//--------------------------------------------------------------------- - -namespace System.Reflection -{ - [AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true, Inherited = false)] - internal sealed class AssemblyMetadataAttribute : Attribute - { - public AssemblyMetadataAttribute(string key, string value) - { - Key = key; - Value = value; - } - - public string Key { get; set; } - public string Value { get; set; } - } -} diff --git a/src/Build.props b/src/Build.props index e63c26d..cde67b0 100644 --- a/src/Build.props +++ b/src/Build.props @@ -1,13 +1,16 @@ - - + + $(MSBuildAllProjects);$(MSBuildThisFileFullPath) $([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), build.root))\ - - + + diff --git a/src/Microsoft.OpenApi.OData.Reader/Microsoft.OpenAPI.OData.Reader.csproj b/src/Microsoft.OpenApi.OData.Reader/Microsoft.OpenAPI.OData.Reader.csproj index 49fd78e..a4c5f54 100644 --- a/src/Microsoft.OpenApi.OData.Reader/Microsoft.OpenAPI.OData.Reader.csproj +++ b/src/Microsoft.OpenApi.OData.Reader/Microsoft.OpenAPI.OData.Reader.csproj @@ -4,8 +4,8 @@ Microsoft.OpenApi.OData.Reader Microsoft.OpenApi.OData net461; netstandard2.0 - Microsoft - Microsoft.OpenApi.OData.Reader + + Microsoft OData Extensions for Open API Microsoft.OpenApi.OData.Reader 1.0.0 Microsoft.OpenApi.OData.Reader diff --git a/tool/After.Common.targets b/tool/After.Common.targets index ae17c8b..d187385 100644 --- a/tool/After.Common.targets +++ b/tool/After.Common.targets @@ -1,5 +1,10 @@ - - + + $(MSBuildAllProjects);$(MSBuildThisFileFullPath) @@ -90,10 +95,8 @@ using System.Resources; - + $(GenerateAssemblyAttributeTemplateCSharp) - $(VersionOutputPath)\AssemblyMetadataAttribute$(DefaultLanguageSourceExtension) - true @@ -115,7 +118,6 @@ using System.Resources; - @@ -126,7 +128,7 @@ using System.Resources; @@ -140,22 +142,12 @@ internal static class VersionConstants internal const string AssemblyVersion = "%VersionFullSemantic%"; } - -Friend Class VersionConstants - Friend Shared ReleaseVersion As String = "%VersionFullSemantic%" - Friend Shared AssemblyVersion As String = "%VersionFullSemantic%" -End Class - - - - + + + $(GenerateVersionConstantsTemplateCSharp) - - $(GenerateVersionConstantsTemplateVB) - - $(IntermediateOutputPath.TrimEnd("\\"))\VersionConstants$(DefaultLanguageSourceExtension) $([System.String]::Copy('$(GenerateVersionConstantsTemplate)').Replace("%25VersionFull%25",$(VersionFull)).Replace("%25VersionFullSemantic%25",$(VersionFullSemantic))) diff --git a/tool/Before.Common.targets b/tool/Before.Common.targets index 28d90d6..24a0b17 100644 --- a/tool/Before.Common.targets +++ b/tool/Before.Common.targets @@ -1,11 +1,13 @@ - - + + $(MSBuildAllProjects);$(MSBuildThisFileFullPath) - - - $(VersionRunBeforeTargets);CoreCompile $(EnlistmentRoot)\src\AssemblyInfo AssemblyInfoCommon$(DefaultLanguageSourceExtension) diff --git a/tool/Build.props b/tool/Build.props index a8df6b6..e63638d 100644 --- a/tool/Build.props +++ b/tool/Build.props @@ -1,14 +1,16 @@ - - + + - $([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), build.root)) + $(MSBuildAllProjects);$(MSBuildThisFileFullPath) + $([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), build.root)) $(EnlistmentRoot.TrimEnd({'\\'})) - $(EnlistmentRoot)\tool + $(EnlistmentRoot)\tool