.Net Core 2.0입니다..Net 핵심 웹 사이트 publish Microsoft.WebSite.Publishing.targets
웹 응용 프로그램과 웹 사이트를 포함하는 새로운 솔루션을 만듭니다. 웹 사이트 프로젝트에는 index.html 및 web.config 파일이 포함되어 있습니다.
웹 응용 프로그램을 게시하는 데 문제가 없지만 웹 사이트에서 약간의 문제가 발생합니다.
FileSystem 게시 방법으로 구성된 게시 프로필을 추가했습니다. 내가 DOTNET 생성 .publishproj 기본에 게시 실행하면
, 나는 다음과 같은 오류 메시지가
error MSB4019: The imported project
"C:\ProgramFiles\dotnet\sdk\2.0.0\Microsoft\
VisualStudio\v10.5\Web\Microsoft.Web
Site.Publishing.targets" was not found. Confirm that the path in the
<Import> declaration is correct, and that the file exists on disk.
좋아 얻을, 그래서 대상 파일이있는 위치로 website.publishproj 값을 변경합니다.
<!--<Import
Project="$(_WebPublishTargetsPath)\Web\Microsoft.WebSite.Publishing.targets"
/>-->
<Import Project="C:\Program Files
(x86)\MSBuild\Microsoft\VisualStudio\v14.0\Web\
Microsoft.WebSite.Publishing.targets" />
은 그 때 나는
error MSB3030: Could not copy the file
"C:\Users\Administrator\AppData\Local\Temp\WebSitePublish\WebSite2-
1026028577\obj\Debug\website.exe" because it was not found.
[C:\Users\Administrator\Documents\visual studio
2017\WebSites\WebSite2\website.publishproj]
내가 어떤 문제없이 비주얼 스튜디오를 사용하여 웹 사이트를 게시 할 수 있습니다 얻을. 내가 뭘 놓치고 있니?
의미가 있고 작동합니다. 비주얼 C# "Asp.Net 웹 사이트"템플릿이 dotnet 코어와 완벽하게 호환된다고 가정했습니다. 고맙습니다. – BenoitM