CHashtag

[aspnetcore] 0. 프로젝트 구경 본문

개발 발자취/aspnetcore

[aspnetcore] 0. 프로젝트 구경

HyoSeong 2022. 3. 10. 21:01
반응형

안녕하세요.

 

요즘 딱히 의욕도 없고, 집에와서 할일도 없고 해서,,

오픈소스 구경이나 해볼까 합니다.

 

목적은

1. 좋은 코드가 어떤 것인지 알기위해

2. 내가 애용하는 프레임워크에 직접 기여해보자

3. 심심하니까

 

정도네요 ㅎㅎ

 

자 그럼 시작합니다.

 


 

무작정 Fork 받기


 

 끝없는 커밋들의 향연,,

 

일단 무작정 Visual Studio 2022로 열었더니,,

 

왠지 구성 요소를 추가로 설치해주거나, Preview 기능들을 설치해줘야 할듯한 느낌인데,,

 

Extension 설치


정신을 다잡고 에러를 읽어보니 wixproj 프로젝트를 열지 못하는 것 같다.

근데 wixproj 가 뭐지??

 

wixproj ​​​란

.msi 파일을 만들때 필요하다는데,,

 

위치도 때마침 aspnetcore\src\Installers\Windows\SharedFramework 에 있긴 한거보니 맞나보다

 

===

아무튼 Visual Studio 2022용 Extension을 설치해주자.

https://marketplace.visualstudio.com/items?itemName=WixToolset.WixToolsetVisualStudio2022Extension 

 

Wix Toolset Visual Studio 2022 Extension - Visual Studio Marketplace

Extension for Visual Studio - Visual Studio integration for the WiX Toolset - the most powerful set of tools available to create your Windows installation experience.

marketplace.visualstudio.com

 

설치가 꽤 오래걸리니 주의하자. (약 5분)

 

설치가 완료되면 다시 솔루션을 실행해보자..

 

그나저나 한 솔루션에 프로젝트 521개,, ㄷㄷㄷ

 

드디어 프로젝트를 열었다!

 

 

하지만 바로 튀어나오는 다음 이슈,

 

우선 그냥 4.0 사용한다 하고 넘어가자

 

 

과연 빌드는 될것인가


 

뭔가 되고있는거 같긴한데,, 끝날 기미가 안보인다.

 

10분 뒤 약 1900개의 에러와 함께 빌드가 끝났다. ㅋㅋㅋ

 

그리고 비슷한 타이밍에 추가 설치가 필요할것이라고 알려준다.

우선 시키는대로 설치해보자

 

 

.NET 7 preview 설치


프로젝트를 살펴보던 도중 Target Frameworks가 net7.0이 있는것을 확인했다

 

찾아보니 .net 7.0 preivew 1 이 나왔다. (2022.03.10 기준)

https://dotnet.microsoft.com/en-us/download/dotnet/7.0

 

Download .NET 7.0 (Linux, macOS, and Windows)

.NET 7.0 downloads for Linux, macOS, and Windows. .NET is a free, cross-platform, open-source developer platform for building many different types of applications.

dotnet.microsoft.com

 

바로 설치해보자.

 

단순히 설치를 한다고해서 달라지는건 없었다,,

 

우선 preview 2도 설치해보자.

 

 

이제 제대로 해보자, 공식 문서 읽으면서 구성하기


https://github.com/dotnet/aspnetcore/blob/main/docs/DailyBuilds.md

 

GitHub - dotnet/aspnetcore: ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on

ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux. - GitHub - dotnet/aspnetcore: ASP.NET Core is a cross-platform .NET frame...

github.com

위 문서대로 따라해보자.

 

최신 버전 .NET Core SDK를 가져오는건 맞았고, Visual Studio Preview는 2022 얘기니까 무시하자. (VS 2022를 최신상태로 만들어두자)

 

Visual Studio 세팅 변경

 

Enable Source Link support in Visual Studio should be enabled.

Enable source server support in Visual should be enabled.

Enable Just My Code should be disabled

Just My Code는 체크 해제해야 한다.

Under Symbols enable the Microsoft Symbol Servers setting.

 

다음 문서를 보고 세팅해주자.

https://github.com/dotnet/aspnetcore/blob/main/docs/BuildFromSource.md

 

GitHub - dotnet/aspnetcore: ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on

ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux. - GitHub - dotnet/aspnetcore: ASP.NET Core is a cross-platform .NET frame...

github.com

https://marketplace.visualstudio.com/items?itemName=WixToolset.WixToolsetVisualStudio2019Extension

 

Wix Toolset Visual Studio 2019 Extension - Visual Studio Marketplace

Extension for Visual Studio - Visual Studio integration for the WiX Toolset - the most powerful set of tools available to create your Windows installation experience.

marketplace.visualstudio.com

 

프로젝트를 열때 꼭 "Do not load projects"를 선택하자.

안그럼,, PC가 많이 힘들어한다 ㅋㅋ

 

그 후 필요한 프로젝트만 load해서 사용하자.

 

세팅이 잘 됐는지는 모르겠지만,, 아무튼 프로젝트가 열렸다!

반응형