Getting Build Warning after compiling solution in c#.

  • Thread starter Thread starter Jai1234_M
  • Start date Start date
J

Jai1234_M

Guest
  1. We are getting the following warnings after compiling the solution, for compilation we are using sharpdev tool (SharpDevelop) :
    • Warning MSB3247: Found conflicts between different versions of the same dependent assembly.
    • Warning 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\Framework64\v4.0.30319\mscorlib.dll", "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.
    • 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", "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.


  1. We have tried MSBuild verbos mode on cmd to find the conflict, along with that we also tried asmspy.
    • We found that all conflicting files are System files.
  2. Our observation :
    • Warning will not come if Folder is present at

“\Program Files (x86)\Reference assemblies\Microsoft\Framework\.NETFramework\v4.0\”

  • Warning will come if the above folder is not present and it refers to the path

C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\ assemblies.

“\Program Files (x86)\Reference assemblies\Microsoft\Framework\.NETFramework\v4.0\”

This above folder is present when the system having VisualStudio.

  1. What we have tried :

As per the different forums we have tried by installing the .Net and sdk to create the “\Program Files (x86)\Reference assemblies\Microsoft\Framework\.NETFramework\v4.0\”

folder but it doesn’t help, that folder doesn’t create.



  1. We are have following queries :
    • Which installation will create this “\Program Files (x86)\Reference assemblies\Microsoft\Framework\.NETFramework\v4.0\” folder apart from Visual studio installation.
    • There is another way we can update app.config file to resolve this issue, however huge amount of assembly practically it won’t be possible to meet all the assemblies in app.config.

1 what is the problem

warning details

2 what we have tried

.exe used

3 what is our observation

foler details

4 when that folder is present,

installed .net and sdk also but folder not creating

5 que to next party

how to create folder, or need to change in configuration but cannot make changed in app.config file bcz it has many assemblies so not possible practically

Continue reading...
 
Back
Top