Microsoft MVP성태의 닷넷 이야기
글쓴 사람
정성태 (techsharer at outlook.com)
홈페이지
첨부 파일
 

error MSB4044: The "Fody.WeavingTask" task was not given a value for the required parameter "IntermediateDir".

예를 들어 etrace같은,

goldshtn / etrace
; https://github.com/goldshtn/etrace

몇몇 오픈 소스 프로젝트를 빌드하는 경우 기본 빌드 시스템에서는 다음과 같은 컴파일 오류가 발생할 수 있습니다.

1>------ Rebuild All started: Project: etrace, Configuration: Debug Any CPU ------
1>E:\git_clone\etrace\packages\Fody.1.28.3\build\Fody.targets(50,5): error MSB4044: The "Fody.WeavingTask" task was not given a value for the required parameter "IntermediateDir".
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

이를 위해 Fody를 NuGet으로부터 설치할 수 있는데,

Fody 
; https://www.nuget.org/packages/Fody

Install-Package Fody

그래도 다음과 같은 오류가 발생합니다. ^^;

1>------ Rebuild All started: Project: etrace, Configuration: Debug Any CPU ------
1>E:\git_clone\etrace\packages\Fody.6.2.4\build\Fody.targets(38,12): error MSB4086: A numeric comparison was attempted on "$(MsBuildMajorVersion)" that evaluates to "" instead of a number, in condition "($(MsBuildMajorVersion) < 16)".
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

문제가 되는 Fody.targets 파일의 38 라인을 보면,

<Error Condition="($(MsBuildMajorVersion) &lt; 16)"
        Text="Fody is only supported on MSBuild 16 and above. Current version: $(MsBuildMajorVersion)." />

MsBuildMajorVersion 변숫값을 확인하고 있는데 원래 이건 비주얼 스튜디오의 빌드 시스템에서 존재하지 않는 상수입니다. 이에 대해 검색해 보면,

Error On compile - MsBuildMajorVersion
; https://github.com/NYAN-x-CAT/AsyncRAT-C-Sharp/issues/61

그러니까... 결국 Fody 자체에서 정의하는 변수인 듯한데 현재 실행된 비주얼 스튜디오 내에서 NuGet으로 설치한 경우에는 바로 반영이 되지 않기 때문에 다시 비주얼 스튜디오를 시작하면 됩니다.




혹은 다음과 같은 빌드 오류가 발생한다면?

1>------ Rebuild All started: Project: etrace, Configuration: Debug Any CPU ------
1>MSBUILD : error : Fody: No weavers found for the configuration entries Costura. Add the desired weavers via their nuget package.
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

메시지에 따라 Costura.Fody를 설치하시면 됩니다.

Install-Package Costura.Fody




[이 글에 대해서 여러분들과 의견을 공유하고 싶습니다. 틀리거나 미흡한 부분 또는 의문 사항이 있으시면 언제든 댓글 남겨주십시오.]







[최초 등록일: ]
[최종 수정일: 8/30/2020]

Creative Commons License
이 저작물은 크리에이티브 커먼즈 코리아 저작자표시-비영리-변경금지 2.0 대한민국 라이센스에 따라 이용하실 수 있습니다.
by SeongTae Jeong, mailto:techsharer at outlook.com

비밀번호

댓글 작성자
 




... 61  62  63  64  65  66  67  68  [69]  70  71  72  73  74  75  ...
NoWriterDateCnt.TitleFile(s)
11924정성태5/30/201913906Math: 57. C# - 해석학적 방법을 이용한 최소 자승법 [1]파일 다운로드1
11923정성태5/30/201913538Math: 56. C# - 그래프 그리기로 알아보는 경사 하강법의 최소/최댓값 구하기파일 다운로드1
11922정성태5/29/201911600.NET Framework: 840. ML.NET 데이터 정규화파일 다운로드1
11921정성태5/28/201916534Math: 55. C# - 다항식을 위한 최소 자승법(Least Squares Method)파일 다운로드1
11920정성태5/28/201910097.NET Framework: 839. C# - PLplot 색상 제어
11919정성태5/27/201913253Math: 54. C# - 최소 자승법의 1차 함수에 대한 매개변수를 단순 for 문으로 구하는 방법 [1]파일 다운로드1
11918정성태5/25/201914431Math: 53. C# - 행렬식을 이용한 최소 자승법(LSM: Least Square Method)파일 다운로드1
11917정성태5/24/201914559Math: 52. MathNet을 이용한 간단한 통계 정보 처리 - 분산/표준편차파일 다운로드1
11916정성태5/24/201912524Math: 51. MathNET + OxyPlot을 이용한 간단한 통계 정보 처리 - Histogram파일 다운로드1
11915정성태5/24/201914831Linux: 11. 리눅스의 환경 변수 관련 함수 정리 - putenv, setenv, unsetenv
11914정성태5/24/201914523Linux: 10. 윈도우의 GetTickCount와 리눅스의 clock_gettime파일 다운로드1
11913정성태5/23/201912167.NET Framework: 838. C# - 숫자형 타입의 bit(2진) 문자열, 16진수 문자열 구하는 방법파일 다운로드1
11912정성태5/23/201911815VS.NET IDE: 137. Visual Studio 2019 버전 16.1부터 리눅스 C/C++ 프로젝트에 추가된 WSL 지원
11911정성태5/23/201910883VS.NET IDE: 136. Visual Studio 2019 - 리눅스 C/C++ 프로젝트에 인텔리센스가 동작하지 않는 경우
11910정성태5/23/201919588Math: 50. C# - MathNet.Numerics의 Matrix(행렬) 연산 [1]파일 다운로드1
11909정성태5/22/201913973.NET Framework: 837. C# - PLplot 사용 예제 [1]파일 다운로드1
11908정성태5/22/201912356.NET Framework: 836. C# - Python range 함수 구현파일 다운로드1
11907정성태5/22/201910131오류 유형: 541. msbuild - MSB4024 The imported project file "...targets" could not be loaded
11906정성태5/21/201910086.NET Framework: 835. .NET Core/C# - 리눅스 syslog에 로그 남기는 방법
11905정성태5/21/201910767.NET Framework: 834. C# - 폴더 경로 문자열에서 "..", "." 표기를 고려한 최종 문자열을 얻는 방법 - 두 번째 이야기
11904정성태5/21/201917075.NET Framework: 833. C# - Open Hardware Monitor를 이용한 CPU 온도 정보 [1]파일 다운로드1
11903정성태5/21/201912026오류 유형: 540. .NET Core - System.PlatformNotSupportedException: The named version of this synchronization primitive is not supported on this platform.
11902정성태5/21/201911184오류 유형: 539. mstest 실행 시 "The directory name is invalid." 오류 발생
11901정성태5/21/201912316오류 유형: 538. msbuild 오류 - Could not find a part of the path '%LOCALAPPDATA%\Temp\2\.NETFramework,Version=v4.0.AssemblyAttributes.cs'
11900정성태5/18/201911580오류 유형: 537. "sfc /scannow" 실행 중 시스템이 부팅되는 현상
11899정성태5/17/201912604Linux: 9. Linux에서 윈도우의 OutputDebugString 대신 사용할 수 있는 syslog [1]
... 61  62  63  64  65  66  67  68  [69]  70  71  72  73  74  75  ...