코딩/Visual Studio2017. 11. 10. 07:34

Visual Studio에서 빈 솔루션 생성하는 방법입니다. (VS 2015)


빈번하게 만들지 않기 때문에 한번 만들려면 찾아 헤매는 경우가 있어 기록해둡니다.


"새 프로젝트 -> 설치됨 -> 템플릿 -> 기타 프로젝트 형식 -> Visual Studio 솔루션" 입니다.


Although a project must reside in a solution, you can create a solution that has no projects.

To create an empty solution

  1. On the File menu, click New and then click New Project.

  2. In the left pane, select Installed, select Other Project Types, and then select Visual Studio Solutions from the expanded list.

  3. In the middle pane, select Blank Solution.

  4. Set the Name and Location values for your solution, then click OK.

After you create an empty solution, you can add new or existing projects or items to it by clicking Add New Item or Add Existing Item on the Projectmenu.

출처 - https://msdn.microsoft.com/en-us/library/zfzh36t7.aspx


'코딩 > Visual Studio' 카테고리의 다른 글

c# 프로젝트 참조들이 느낌표로 표시될 때  (0) 2017.11.09
Posted by foon
코딩/Visual Studio2017. 11. 9. 20:52

루션에 프로젝트를 추가하면 참조에 느낌표가 표시되면서 빌드가 안 되는 경우가 있습니다.





이때, 프로젝트 파일 ( Example.csproj )을 열었을 때, 다음 문구가 있다면, 


...


<Import Project="$(SolutionDir)\.nuget\NuGet.targets" Condition="Exists('$(SolutionDir)\.nuget\NuGet.targets')" />

  <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">

    <PropertyGroup>

      <ErrorText>이 프로젝트는 이 컴퓨터에 없는 NuGet 패키지를 참조합니다. ... </ErrorText>

    </PropertyGroup>

    <Error Condition="!Exists('$(SolutionDir)\.nuget\NuGet.targets')" Text="$([System.String]::Format('$(ErrorText)', '$(SolutionDir)\.nuget\NuGet.targets'))" />

  </Target> 


...


아래와 같이 <!-- ... --> 로 주석 처리를 해주면 됩니다.


 

...


<!--


<Import Project="$(SolutionDir)\.nuget\NuGet.targets" Condition="Exists('$(SolutionDir)\.nuget\NuGet.targets')" />

  <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">

    <PropertyGroup>

      <ErrorText>이 프로젝트는 이 컴퓨터에 없는 NuGet 패키지를 참조합니다. ... </ErrorText>

    </PropertyGroup>

    <Error Condition="!Exists('$(SolutionDir)\.nuget\NuGet.targets')" Text="$([System.String]::Format('$(ErrorText)', '$(SolutionDir)\.nuget\NuGet.targets'))" />

  </Target> 


-->

...


< END >

Posted by foon