최근에 VS 2015 업데이트 3에서 내 솔루션을 TypeScript 1.8에서 TypeScript 2.1로 업그레이드 한 VS 2017로 업그레이드했습니다.
TypeScriptToolsVersion
내 .csproj
파일에서 다음 1.8
과 2.1
같이 변경 했습니다 .
다음은 전체 PropertyGroup입니다.
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{redacted}</ProjectGuid>
<ProjectTypeGuids>{redacted};{redacted}</ProjectTypeGuids>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>WebApplication</RootNamespace>
<AssemblyName>WebApplication</AssemblyName>
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
<FileUpgradeFlags>
</FileUpgradeFlags>
<OldToolsVersion>4.0</OldToolsVersion>
<UpgradeBackupLocation />
<TargetFrameworkProfile />
<UseIISExpress>false</UseIISExpress>
<WcfConfigValidationEnabled>True</WcfConfigValidationEnabled>
<IISExpressSSLPort /><IISExpressAnonymousAuthentication>disabled</IISExpressAnonymousAuthentication>
<IISExpressWindowsAuthentication>enabled</IISExpressWindowsAuthentication>
<IISExpressUseClassicPipelineMode>false</IISExpressUseClassicPipelineMode>
<UseGlobalApplicationHostFile />
<TypeScriptToolsVersion>2.1</TypeScriptToolsVersion>
</PropertyGroup>
업그레이드 전에 배포는 파일과 연결된 .js
및 .map.js
파일을 복사 .ts
합니다. (이러한 .js
파일은 솔루션에 "포함"되지 않았습니다.
업그레이드 후 배포는 관련 .js
또는 .map.js
파일을 복사하지 않습니다 .
이상하게도 .js
연결된 TypeScript 소스가없는 파일 (예 : jquery.js
. 이러한 파일은 솔루션에 "포함"됩니다.
빌드에 .js
예상대로 연결된 파일 이 있는지 확인할 수 있습니다 . 배포 단계에서는 파일을 복사하지 않습니다.
다음과 같이 배포를 위해 msdeploy를 사용하고 있습니다.
WebApplication.deploy.cmd https://WEBSERVER01:8172/msdeploy.axd?site=test.example.com TheUser ThePassword
이러한 파일이 더 이상 복사되지 않는 이유는 무엇이며 어떻게 해결할 수 있습니까?
이것은 15.2에서 수정 된 것으로 보입니다.
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다