1-949-236-6510    

INFO: Workaround for a license compiler exception when targeting x64 in .NET framework 2.0, 3.0, or 3.5

Table of Contents

Background

_ INFO: Workaround for a license compiler exception when targeting x64 in .NET framework 4.0 and up

To workaround this issue you will need to modify your application project file in a text editor. Add the highlighted line shown below to all of your 64-bit build configurations:

<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x64' ">  
 <DebugSymbols>true</DebugSymbols> <OutputPath>bin\x64\Debug\</OutputPath>  
 <DefineConstants>DEBUG;TRACE</DefineConstants> <DebugType>full</DebugType>  
 <PlatformTarget>x64</PlatformTarget>  
 <CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression>  
 <CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile>  
 <ErrorReport>prompt</ErrorReport>  
 <LCToolPath>C:\Program Files (x86)\Microsoft SDKs\Windows\v6.0A\bin\x64</LCToolPath>   
  </PropertyGroup>  
 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x64' ">  
 <OutputPath>bin\x64\Release\</OutputPath>  
 <DefineConstants>TRACE</DefineConstants>  
 <Optimize>true</Optimize>  
 <DebugType>pdbonly</DebugType>  
 <PlatformTarget>x64</PlatformTarget>  
 <CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression>  
 <CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile>  
 <ErrorReport>prompt</ErrorReport>  
 <LCToolPath>C:\Program Files (x86)\Microsoft SDKs\Windows\v6.0A\bin\x64</LCToolPath>   
</PropertyGroup> 

This will tell Visual Studio where to get the license compiler during a build.

Back to Top

Back to Top

Original Article

Last Update

2025-06-18 - TD

Prev: INFO: Workaround for a License Compiler Exception When Targeting x64 in .NET Framework 4.0 and up

Return to KB