Random build error

Ask general questions here.
c676228
Posts: 176
Joined: Mon Apr 06, 2015 5:40 am

Random build error

Post by c676228 » Thu Sep 10, 2015 1:51 am

Hi all,
In the middle of the testing. I got a build warning. See below. It was ok and I didn't make any configuration changes etc..
I have seen this kind of messages from time to time. The only difference is the .net version.
Today I restart the VM. It still gives me the warning.

There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "System.Data", "AMD64". 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. (MSB3270)
There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll", "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. (MSB3270)
The reference assemblies for framework ".NETFramework,Version=v4.5" were not found. To resolve this, install the SDK or Targeting Pack for this framework version or retarget your application to a version of the framework for which you have the SDK or Targeting Pack installed. Note that assemblies will be resolved from the Global Assembly Cache (GAC) and will be used in place of reference assemblies. Therefore your assembly may not be correctly targeted for the framework you intend. (MSB3644)

c676228
Posts: 176
Joined: Mon Apr 06, 2015 5:40 am

Re: Random build error

Post by c676228 » Tue Sep 15, 2015 9:13 pm

Great Support Hansel from Ranorex pointed out that it has something to do with Windows SDK.
After it is installed. The build warnings are gone. Many weird issues are gone too.

The strange thing is the warnings were given after some tests are being done, not at the very beginning when the
machine was just set.