robertb_NZ
Well-known member
My software is deployed from my web site using ClickOnce. When I published it I got various warning messages, however everything seems to be OK. Should I be concerned?
First there are some messages related to an IBM Add-in: -
1>------ Build started: Project: Jazz, Configuration: Debug x86 ------
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(2110,5): warning MSB3270: There was a mismatch between the processor architecture of the project being built "x86" and the processor architecture of the reference "IBM.Data.DB2, Version=9.7.4.4, Culture=neutral, PublicKeyToken=7c307b91aa13d208, processorArchitecture=x86", "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>vbc : warning BC42372: Referenced assembly 'IBM.Data.DB2, Version=9.0.0.2, Culture=neutral, PublicKeyToken=7c307b91aa13d208' targets a different processor.
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(3867,5): warning MSB3187: Referenced assembly 'C:\Program Files\IBM\SQLLIB\BIN\netf20\IBM.Data.DB2.dll' targets a different processor than the application.
1> Jazz -> C:\Users\Robertbw10\source\repos\Jazz\Jazz\bin\Debug\Jazz.exe
Building Jazz...
The output then continues with a couple of MSB3155 messages that seem to relate to ClickOnce publishing: -
2>------ Publish started: Project: Jazz, Configuration: Debug x86 ------
2>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(5390,5): warning MSB3155: Item '.NETFramework,Version=v4.0,Profile=Client' could not be located in 'C:\Program Files (x86)\Microsoft SDKs\ClickOnce Bootstrapper\'.
2>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(5390,5): warning MSB3155: Item 'Microsoft.Windows.Installer.3.1' could not be located in 'C:\Program Files (x86)\Microsoft SDKs\ClickOnce Bootstrapper\'.
[/ICODE]
The build was successful, and when I clicked the link from the web site it downloaded and ran correctly.
From Help/About, I am using Visual Studio Community 2017, Version 15.9.13, with .NET Framework Version 4.1.03752.
The project's Target framework is set to .NET Framework 4. VS offers me versions up to 4.6.1
My laptop is running Windows 10 Pro, version 1903, on an x64-based processor.
So everything appears to be OK in spite of the messages, but I'm wondering if this might not be true for other users, e.g. with earlier OS or 32 bit systems. Would the messages disappear if I were to set the target framework to 4.6.1 (the latest)?
Thank you, Robert Barnes.
First there are some messages related to an IBM Add-in: -
1>------ Build started: Project: Jazz, Configuration: Debug x86 ------
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(2110,5): warning MSB3270: There was a mismatch between the processor architecture of the project being built "x86" and the processor architecture of the reference "IBM.Data.DB2, Version=9.7.4.4, Culture=neutral, PublicKeyToken=7c307b91aa13d208, processorArchitecture=x86", "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>vbc : warning BC42372: Referenced assembly 'IBM.Data.DB2, Version=9.0.0.2, Culture=neutral, PublicKeyToken=7c307b91aa13d208' targets a different processor.
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(3867,5): warning MSB3187: Referenced assembly 'C:\Program Files\IBM\SQLLIB\BIN\netf20\IBM.Data.DB2.dll' targets a different processor than the application.
1> Jazz -> C:\Users\Robertbw10\source\repos\Jazz\Jazz\bin\Debug\Jazz.exe
Building Jazz...
The output then continues with a couple of MSB3155 messages that seem to relate to ClickOnce publishing: -
2>------ Publish started: Project: Jazz, Configuration: Debug x86 ------
2>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(5390,5): warning MSB3155: Item '.NETFramework,Version=v4.0,Profile=Client' could not be located in 'C:\Program Files (x86)\Microsoft SDKs\ClickOnce Bootstrapper\'.
2>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(5390,5): warning MSB3155: Item 'Microsoft.Windows.Installer.3.1' could not be located in 'C:\Program Files (x86)\Microsoft SDKs\ClickOnce Bootstrapper\'.
[/ICODE]
The build was successful, and when I clicked the link from the web site it downloaded and ran correctly.
From Help/About, I am using Visual Studio Community 2017, Version 15.9.13, with .NET Framework Version 4.1.03752.
The project's Target framework is set to .NET Framework 4. VS offers me versions up to 4.6.1
My laptop is running Windows 10 Pro, version 1903, on an x64-based processor.
So everything appears to be OK in spite of the messages, but I'm wondering if this might not be true for other users, e.g. with earlier OS or 32 bit systems. Would the messages disappear if I were to set the target framework to 4.6.1 (the latest)?
Thank you, Robert Barnes.