Replace all the
assemblf
by
assembly
in
AssemblyInfo.cs
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi,
How to resolve issue like
Severity Code Description Project File Line Suppression State
Error CS0116 A namespace cannot directly contain members such as fields or methods
due to 2nd line below?
[assemblf: AssemblyVersion("1.0.0.0")]
[assemblf: AssemblyFileVersion("1.0.0.0")]
Replace all the
assemblf
by
assembly
in
AssemblyInfo.cs
Hi @Peter_1985 ,
Error CS0116 A namespace cannot directly contain members such as fields or methods
Methods and variables must be declared and defined within a struct or class. Check : Compiler Error CS0116
AssemblyVersionAttribute is used to specify the version of the assembly being attributed. See : Details of Assembly version
Besides, if you need further assistance, please provide some related code here. It will help us analzye your problem.
Best Regards,
Xingyu Zhao
*
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
This information belongs in (from solution explorer) and not heard of the two you mentioned.
Properties -> AssemblyInfo.cs
Hi,
Can you see why issue arises, on project below?