I started getting build error
MSB3174 Invalid value for 'AssemblyVersion'
This started after trying a couple of version updating extensions (Version Changer 2022 & Intentional Solution Version Editor VS2022) in my Visual Studio 2022 environment. I have since uninstalled the extension, but it has not resolved the issue.
I searched online for articles referencing this error, but did not find one with a scenario that matched mine. The AssemblyVersion tags in the .csproj file are hard-code ("2024.1.2.1") with no wildcards.
Here is the project file. For history, this project was upgraded from a .NET Framework 4.7 project. I am sure the project file could be cleaned up, but need to do some more research before I start removing things. Thank you in advance!
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0-windows7.0</TargetFramework>
<OutputType>WinExe</OutputType>
<RootNamespace>LabBilling</RootNamespace>
<AssemblyName>LabBilling</AssemblyName>
<IsWebBootstrapper>false</IsWebBootstrapper>
<PublishUrl>\\wthmclbill\installations%24\LabBilling\</PublishUrl>
<Install>true</Install>
<InstallFrom>Unc</InstallFrom>
<UpdateEnabled>true</UpdateEnabled>
<UpdateMode>Foreground</UpdateMode>
<UpdateInterval>7</UpdateInterval>
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
<UpdatePeriodically>false</UpdatePeriodically>
<UpdateRequired>false</UpdateRequired>
<MapFileExtensions>true</MapFileExtensions>
<InstallUrl>\\wthmclbill\installations%24\LabBilling\</InstallUrl>
<ProductName>Lab Outreach Patient Accounting</ProductName>
<PublisherName>West Tennessee Healthcare</PublisherName>
<WebPage>publish.htm</WebPage>
<ApplicationRevision>192</ApplicationRevision>
<ApplicationVersion>2024</ApplicationVersion>
<UseApplicationTrust>false</UseApplicationTrust>
<CreateDesktopShortcut>true</CreateDesktopShortcut>
<PublishWizardCompleted>true</PublishWizardCompleted>
<BootstrapperEnabled>true</BootstrapperEnabled>
<GenerateAssemblyInfo>True</GenerateAssemblyInfo>
<UseWindowsForms>true</UseWindowsForms>
<UseWPF>True</UseWPF>
<ImportWindowsDesktopTargets>true</ImportWindowsDesktopTargets>
<Platforms>AnyCPU;x64</Platforms>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>x64</PlatformTarget>
<NoWarn>1701;1702;CA1416</NoWarn>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<PlatformTarget>x64</PlatformTarget>
<NoWarn>1701;1702;CA1416</NoWarn>
</PropertyGroup>
<PropertyGroup>
<ManifestCertificateThumbprint>3AC84057527B57715CD35ED62ED2E71DC0EE37E8</ManifestCertificateThumbprint>
</PropertyGroup>
<PropertyGroup>
<ManifestKeyFile>Lab Billing WinForms UI_TemporaryKey.pfx</ManifestKeyFile>
</PropertyGroup>
<PropertyGroup>
<GenerateManifests>true</GenerateManifests>
</PropertyGroup>
<PropertyGroup>
<SignManifests>false</SignManifests>
</PropertyGroup>
<PropertyGroup>
<ApplicationIcon>logoicon2.ico</ApplicationIcon>
</PropertyGroup>
<PropertyGroup>
<TargetZone>LocalIntranet</TargetZone>
</PropertyGroup>
<PropertyGroup>
<Version></Version>
<Copyright>2023-2024</Copyright>
<RepositoryUrl>https://github.com/bradsp/Lab-Patient-Accounting</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<ImplicitUsings>enable</ImplicitUsings>
<AssemblyVersion>2024.1.3.3</AssemblyVersion>
<FileVersion>2024.1.3.3</FileVersion>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<NoWarn>1701;1702;CA1416</NoWarn>
<ShouldCreateLogs>True</ShouldCreateLogs>
<AdvancedSettingsExpanded>True</AdvancedSettingsExpanded>
<UpdateAssemblyVersion>False</UpdateAssemblyVersion>
<UpdateAssemblyFileVersion>False</UpdateAssemblyFileVersion>
<UpdateAssemblyInfoVersion>False</UpdateAssemblyInfoVersion>
<UpdatePackageVersion>False</UpdatePackageVersion>
<AssemblyInfoVersionType>SettingsVersion</AssemblyInfoVersionType>
<InheritWinAppVersionFrom>AssemblyVersion</InheritWinAppVersionFrom>
<PrimaryVersionType>AssemblyVersionAttribute</PrimaryVersionType>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<NoWarn>1701;1702;CA1416</NoWarn>
</PropertyGroup>
<ItemGroup>
<Compile Update="Properties\Resources.Designer.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<Compile Update="Properties\Settings.Designer.cs">
<DesignTimeSharedInput>True</DesignTimeSharedInput>
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
</Compile>
<Compile Update="UserControls\CurrencyTextBox.cs">
<SubType>Component</SubType>
</Compile>
<Compile Update="UserControls\DateTextBox.cs">
<SubType>Component</SubType>
</Compile>
<Compile Update="UserControls\FlatCombo.cs">
<SubType>Component</SubType>
</Compile>
<Compile Update="UserControls\LabDataGridView.cs">
<SubType>Component</SubType>
</Compile>
<Compile Update="UserControls\LabeledTextBox.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Update="UserControls\MenuButton.cs">
<SubType>Component</SubType>
</Compile>
<Compile Update="UserControls\MultiColumnCombo.cs">
<SubType>Component</SubType>
</Compile>
<Compile Update="Library\Opulos.Core\Accordion.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Update="Library\Opulos.Core\ResizeBar.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Update="UserControls\InsuranceLookup.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Update="UserControls\ProviderLookup.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Update="Library\StateComboBox.cs">
<SubType>Component</SubType>
</Compile>
<None Include="Lab Billing WinForms UI_TemporaryKey.pfx" />
<Content Include="logoicon2.ico" />
<None Update="NLog.config">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
</ItemGroup>
<ItemGroup>
<BootstrapperPackage Include=".NETFramework,Version=v4.6.1">
<Visible>False</Visible>
<ProductName>Microsoft .NET Framework 4.6.1 %28x86 and x64%29</ProductName>
<Install>true</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1</ProductName>
<Install>false</Install>
</BootstrapperPackage>
</ItemGroup>
<ItemGroup>
<WCFMetadata Include="Connected Services\" />
</ItemGroup>
<ItemGroup Label="Package References">
<PackageReference Include="HtmlAgilityPack">
<Version>1.11.60</Version>
</PackageReference>
<PackageReference Include="LazyCache">
<Version>2.4.0</Version>
</PackageReference>
<PackageReference Include="Microsoft.SqlServer.SqlManagementObjects">
<Version>171.30.0</Version>
</PackageReference>
<PackageReference Include="Microsoft.VisualBasic" Version="10.3.0" />
<PackageReference Include="NLog">
<Version>5.2.8</Version>
<TreatAsUsed>true</TreatAsUsed>
</PackageReference>
<PackageReference Include="NLog.Database">
<Version>5.2.8</Version>
<TreatAsUsed>true</TreatAsUsed>
</PackageReference>
<PackageReference Include="NLog.Schema">
<Version>5.2.8</Version>
</PackageReference>
<PackageReference Include="PoorMansTSqlFormatterRedux" Version="1.0.3" />
<PackageReference Include="ScottPlot.WinForms" Version="5.0.23" />
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
</ItemGroup>
<ItemGroup Label="Project References">
<ProjectReference Include="..\..\DataGridViewGrouper\DataGridViewGrouper\DataGridViewGrouper.csproj">
<Private>True</Private>
</ProjectReference>
<ProjectReference Include="..\LabBilling Library\LabBilling Core.csproj">
<Private>True</Private>
</ProjectReference>
<ProjectReference Include="..\LabBilling Winforms Library\LabBilling Winforms Library.csproj">
<Private>True</Private>
</ProjectReference>
<ProjectReference Include="..\MCL\MCL.csproj">
<Private>True</Private>
</ProjectReference>
<ProjectReference Include="..\Utilities\Utilities.csproj" />
<ProjectReference Include="..\WinFormsLibrary\WinFormsLibrary.csproj">
<Private>True</Private>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Compile Remove="Library\TNumEditBox.cs" />
<Compile Remove="Library\TNumEditDataGridViewElements.cs" />
</ItemGroup>
<ItemGroup>
<Reference Include="CustomTabControl">
<HintPath>..\..\CustomTabControl2\bin\Release\net6.0-windows\CustomTabControl.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Update="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\PublishProfiles\" />
</ItemGroup>
</Project>