今天编译器出现如下警告:
C:WindowsMicrosoft.NETFrameworkv4.0.30319Microsoft.Common.targets(1578,5): warning MSB3270: There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "System.Data.SQLite, Version=1.0.62.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139, processorArchitecture=x86", "x86". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project.
上网查解决办法:
FileTracker : error FTK1011编译错误的解决办法有三个。
方法一:把目标框架改为Framewotk=4.0
方法二:新增环境变量TRACKFILEACCESS=false:
操作步骤:右击"我的电脑"(或"计算机")-->"高级"-->"环境变量"-->"新建系统变量"-->填写"变量名"为"TRACKFILEACCESS",变量值为"false",保存即可.
方法三:
打开文件: C:WINDOWSMicrosoft.NETFrameworkv4.0.30319Microsoft.Common.Targets
找到
<GenerateResource
…
TrackFileAccess="$(TrackFileAccess)"
TrackerLogDirectory="$(TrackerLogDirectory)"
…
</GenerateResource>
删除
TrackFileAccess="$(TrackFileAccess)"
TrackerLogDirectory="$(TrackerLogDirectory)"
三种方式均可解决这个编译时的错误。