dotnet / dotnet/project-system

CA1016 Mark assemblies with assembly version For VB Code Generation Projects

Open
#7,005 1 comment 0 reactions 1 assignee Claimed by @melytc View on GitHub
Triage-Investigate
Dominant language
C#
Stars
1k
Forks
415
PR merge metrics
No merged PRs in 30d

Description

**Visual Studio Version**:
16.9 and 16.10 Preview 1

**Summary**:
Even though AssemblyVersion is set as shown below you get CA1016
![image](https://user-images.githubusercontent.com/12789369/110262470-a1a1e480-7f68-11eb-8420-b766df9cdfbb.png)

**Steps to Reproduce**:
```XML


CVS_Generator
netstandard2.0
true
false
On
Text
Off
en-US
1.0.0.1
1.0.0.1


41999,42016,42017,42018,42019,42020,42021,42022,42032,42036


41999,42016,42017,42018,42019,42020,42021,42022,42032,42036






all
runtime; build; native; contentfiles; analyzers; buildtransitive



all
runtime; build; native; contentfiles; analyzers; buildtransitive


```
Possibly relates is the UI in Visual Studio does not show what is in Project File and changing in UI is not reflected in Project File only for this type of project.
![image](https://user-images.githubusercontent.com/12789369/110262720-65bb4f00-7f69-11eb-9a26-633c5b7349d6.png)
This might be a separate bug and I can open a separate issue if necessary.
The project can be found at https://github.com/paul1956/CSharpToVB/

**Expected Behavior**:
No CA1016

**Actual Behavior**:
CA1016

**User Impact**:
Annoying as this only happens in Code Generator Projects and there is no way to make it go away

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.