프로그램/C#
[ C# ] Embedded Compact7 용 프로그램 컴파일 속도향상
구서기
2017. 7. 1. 15:07
Microsoft Visual Studio 2008 의 C#으로
Windows Embedded Compact 7 용
어플리케이션 개발할때....
대략 폼이 10개 이상 넘어가면 간단히 문자하나 수정해도
컴파일 하는데 10분이상 걸린다면... 개짜증
해결방법은
C:\Windows\Microsoft.NET\Framework\v3.5 디렉토리에
Microsoft.CompactFramework.Common.targets 파일을 우선 백업복사하시고
파일을열어서
1 2 3 4 5 6 7 8 9 10 | <Target Name="PlatformVerificationTask" Condition="'$(SkipPlatformVerification)'=='true'"> <PlatformVerificationTask PlatformFamilyName="$(PlatformFamilyName)" PlatformID="$(PlatformID)" SourceAssembly="@(IntermediateAssembly)" ReferencePath="@(ReferencePath)" TreatWarningsAsErrors="$(TreatWarningsAsErrors)" PlatformVersion="$(TargetFrameworkVersion)"/> </Target> | cs |
위부분을 찾아서 (대략 99번째라인 쯤에 있음 ^^)
Condition="'$(SkipPlatformVerification)'=='true'" 이걸추가
해주면 컴파일속도가 10배 이상 빨라집니다.