성태의 닷넷 이야기
홈 주인
모아 놓은 자료
프로그래밍
질문/답변
사용자 관리
사용자
메뉴
아티클
외부 아티클
유용한 코드
온라인 기능
MathJax 입력기
최근 덧글
[정성태] Java - How to use the Foreign Funct...
[정성태] 제가 큰 실수를 했군요. ^^; Delegate를 통한 Bein...
[정성태] Working with Rust Libraries from C#...
[정성태] Detecting blocking calls using asyn...
[정성태] 아쉽게도, 커뮤니티는 아니고 개인 블로그입니다. ^^
[정성태] 질문이 잘 이해가 안 됩니다. 우선, 해당 소스코드에서 ILis...
[양승조
] var대신 dinamic으로 선언해서 해결은 했습니다. 맞는 해...
[양승조
] 또 막혔습니다. ㅠㅠ var list = props[i].Ge...
[양승조
] 아. 감사합니다. 어제는 안됐던것 같은데....정신을 차려야겠네...
[정성태] "props[i].GetValue(props[i])" 코드에서 ...
글쓰기
제목
이름
암호
전자우편
HTML
홈페이지
유형
제니퍼 .NET
닷넷
COM 개체 관련
스크립트
VC++
VS.NET IDE
Windows
Team Foundation Server
디버깅 기술
오류 유형
개발 환경 구성
웹
기타
Linux
Java
DDK
Math
Phone
Graphics
사물인터넷
부모글 보이기/감추기
내용
<div style='display: inline'> <h1 style='font-family: Malgun Gothic, Consolas; font-size: 20pt; color: #006699; text-align: center; font-weight: bold'>dotnet build - The local source '...' doesn't exist</h1> <p> 실습 중에 이런 오류가 발생한다면?<br /> <br /> <pre style='margin: 10px 0px 10px 10px; padding: 10px 0px 10px 10px; background-color: #fbedbb; overflow: auto; font-family: Consolas, Verdana;' > c:\temp\consoleapp><span style='color: blue; font-weight: bold'>dotnet new console</span> c:\temp\consoleapp><span style='color: blue; font-weight: bold'>dotnet run</span> Hello World! c:\temp\consoleapp><span style='color: blue; font-weight: bold'>dotnet build --runtime <a target='tab' href='https://docs.microsoft.com/en-us/dotnet/core/rid-catalog'>win-x64</a></span> Microsoft (R) Build Engine version 16.7.0+7fb82e5b2 for .NET Copyright (C) Microsoft Corporation. All rights reserved. Determining projects to restore... C:\Program Files\dotnet\sdk\3.1.402\NuGet.targets(128,5): error : The local source 'C:\MyNuGet' doesn't exist. [c:\temp\consoleapp\consoleapp.csproj] Build FAILED. C:\Program Files\dotnet\sdk\3.1.402\NuGet.targets(128,5): error : The local source 'C:\MyNuGet' doesn't exist. [c:\temp\consoleapp\consoleapp.csproj] 0 Warning(s) 1 Error(s) Time Elapsed 00:00:00.84 </pre> <br /> Nuget 소스로 등록된 곳의,<br /> <br /> <pre style='margin: 10px 0px 10px 10px; padding: 10px 0px 10px 10px; background-color: #fbedbb; overflow: auto; font-family: Consolas, Verdana;' > C:\temp> <span style='color: blue; font-weight: bold'>dotnet nuget list source</span> Registered Sources: 1. nuget.org [Enabled] https://api.nuget.org/v3/index.json 2. Microsoft Visual Studio Offline Packages [Enabled] C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\ <span style='color: blue; font-weight: bold'>3. My [Enabled] C:\MyNuGet</span> </pre> <br /> "C:\MyNuGet" 경로가 더 이상 로컬에 없기 때문입니다. 오류를 수정하려면 해당 경로를 만들어주거나, 아니면 문제가 되는 소스를 삭제/변경하면 됩니다.<br /> <br /> <a name='nuget_config'></a> 또는, 그냥 이를 무시하고 기본 nuget.config을 하나 만들어 줘도 됩니다.<br /> <br /> <pre style='margin: 10px 0px 10px 10px; padding: 10px 0px 10px 10px; background-color: #fbedbb; overflow: auto; font-family: Consolas, Verdana;' > c:\temp\consoleapp> <span style='color: blue; font-weight: bold'>dotnet new nuget</span> The template "NuGet Config" was created successfully. c:\temp\consoleapp><span style='color: blue; font-weight: bold'>dotnet build --runtime win-x64</span> Microsoft (R) Build Engine version 16.7.0+7fb82e5b2 for .NET Copyright (C) Microsoft Corporation. All rights reserved. Determining projects to restore... Restored c:\temp\consoleapp\consoleapp.csproj (in 7.39 sec). consoleapp -> c:\temp\consoleapp\bin\Debug\netcoreapp3.1\win-x64\consoleapp.dll Build succeeded. 0 Warning(s) 0 Error(s) Time Elapsed 00:00:11.57 </pre> <br /> 참고로, "dotnet new nuget" 명령어로 기본 생성되는 nuget.config 파일은 다음과 같습니다.<br /> <br /> <pre style='margin: 10px 0px 10px 10px; padding: 10px 0px 10px 10px; background-color: #fbedbb; overflow: auto; font-family: Consolas, Verdana;' > <?xml version="1.0" encoding="utf-8"?> <configuration> <packageSources> <!--To inherit the global NuGet package sources remove the <clear/> line below --> <clear /> <add key="nuget" value="https://api.nuget.org/v3/index.json" /> </packageSources> </configuration> </pre> </p><br /> <br /><hr /><span style='color: Maroon'>[이 글에 대해서 여러분들과 의견을 공유하고 싶습니다. 틀리거나 미흡한 부분 또는 의문 사항이 있으시면 언제든 댓글 남겨주십시오.]</span> </div>
첨부파일
스팸 방지용 인증 번호
8477
(왼쪽의 숫자를 입력해야 합니다.)