Visual Studio 2022
Moderator: Ras
- 
				Henk
- Posts: 7251
- Joined: Mon May 27, 2013 10:31 am
Visual Studio 2022
I went from visual 2019 to 2022. But what a difference. Background color black with all kinds of distracting colors. (types, variables, etc) Don't know how long it takes to getting used to that. If ever.
			
			
									
						
										
						- 
				lithander  
- Posts: 915
- Joined: Sun Dec 27, 2020 2:40 am
- Location: Bremen, Germany
- Full name: Thomas Jahn
Re: Visual Studio 2022
Just disable dark mode. Assuming you have a german language install the option is found here:
"Extras->Optionen->Umgebung->Visuelle Darstellung->Farbschema"
			
			
									
						
										
						"Extras->Optionen->Umgebung->Visuelle Darstellung->Farbschema"
- 
				Henk
- Posts: 7251
- Joined: Mon May 27, 2013 10:31 am
Re: Visual Studio 2022
Ok found it. I am using Community Version. It is Tools->Theme etc.
			
			
									
						
										
						- 
				Chessnut1071
- Posts: 313
- Joined: Tue Aug 03, 2021 2:41 pm
- Full name: Bill Beame
Re: Visual Studio 2022
"... Background color black with all kinds of distracting colors. "
welcome to the club. you eventually get used to it. Wait till you do an edit search and everything is camouflaged. Also, it's not any faster; however, you need the updates.
You will need the intrinsics below if you came from another language.
using System.Runtime.Intrinsics.X86;
Bmi1.X64.TrailingZeroCount(value)
Lzcnt.X64.LeadingZeroCount(value)
Bmi2.X64.ParallelBitExtract(blocker_board, rookMask[sqr])
- 
				Henk
- Posts: 7251
- Joined: Mon May 27, 2013 10:31 am
Re: Visual Studio 2022
Which nuget package  contains System.Runtime.Intrinsics.X86 ? 
I doubt if it works. So it should be easy to de-install.
			
			
									
						
										
						I doubt if it works. So it should be easy to de-install.
- 
				Chessnut1071
- Posts: 313
- Joined: Tue Aug 03, 2021 2:41 pm
- Full name: Bill Beame
- 
				Henk
- Posts: 7251
- Joined: Mon May 27, 2013 10:31 am
Re: Visual Studio 2022
I can't create a class library using net7.0 for the visual studio community version I am using does not have that option. Only net6.0 possible.
			
			
									
						
										
						- 
				Henk
- Posts: 7251
- Joined: Mon May 27, 2013 10:31 am
Re: Visual Studio 2022
Hi hi hi. When I set   <Nullable>enable</Nullable> in project file I get hundreds of warnings. I don't think I have the patience to correct them all. 
Enable here means something like that references are not allowed to be null unless you make them nullable explicitly by adding a '?' operator.
O wait record is a reference too.
Looks like I first have to learn C#
			
			
													Enable here means something like that references are not allowed to be null unless you make them nullable explicitly by adding a '?' operator.
O wait record is a reference too.
Looks like I first have to learn C#
					Last edited by Henk on Fri May 20, 2022 12:22 pm, edited 1 time in total.
									
			
						
										
						- 
				dangi12012
- Posts: 1062
- Joined: Tue Apr 28, 2020 10:03 pm
- Full name: Daniel Infuehr
Re: Visual Studio 2022
VS 2022 is the best VS yet. 
The intellisense in C# has gotten to an insane level. It correctly predicts most code that I want to write etc..
In C++ it also got a lot better.
			
			
									
						
							The intellisense in C# has gotten to an insane level. It correctly predicts most code that I want to write etc..
In C++ it also got a lot better.
Worlds-fastest-Bitboard-Chess-Movegenerator 
Daniel Inführ - Software Developer
			
						Daniel Inführ - Software Developer
- 
				Henk
- Posts: 7251
- Joined: Mon May 27, 2013 10:31 am
Re: Visual Studio 2022
C# code in Blazor webassembly does not even run:
So I had to replace it with the old
to make it work.
So I need a WebApi to run the first code ?
What a world we live.
			
			
									
						
										
						Code: Select all
var bit = ExtractLowestSetBit(bits);
bits = ResetLowestSetBit(bits);
Code: Select all
 var bit = bits & (~bits + 1);
 bits &= (bits - 1);
 So I need a WebApi to run the first code ?
What a world we live.