tag:help.appveyor.com,2012-11-13:/discussions/questions/946-net-40-vssdk-2010AppVeyor: Discussion 2018-10-19T08:17:00Ztag:help.appveyor.com,2012-11-13:Comment/359871342015-02-06T23:36:04Z2015-02-06T23:36:05Z.NET 4.0 & VSSDK 2010<div><p>Hi, it's me again.. guy with custom logger for msbuild :)</p>
<p>So., I started to configure AppVeyor for project about what I
wrote before.. however,</p>
<p><a href=
"http://help.appveyor.com/discussions/questions/900-additional-logger-to-msbuild">
here</a> I tested sln for VS2013 on test repo where used .NET
4.5</p>
<p>and this all working fine, but this project also a little harder
(not trivial I mean) :)</p>
<p>Short again: This project as extension for Visual Studio 2010,
2012, 2013, 2015 requires the VSSDK and used self assembly through
msbuild as I said before.<br>
But all references from VSSDK has been used with compatibility on
VS2010 - therefore this can be used for build with VSSDK 2010 on
all new versions of the Visual Studio! (well, on current day)</p>
<p>And therefore still exists supports of the VS2010... but in any
case, currently I can't build for VS2010 with AppVeyor!</p>
<p>for example for VS2013:<br>
* <a href=
"https://ci.appveyor.com/project/3Fs/vssolutionbuildevent/build/1.0.1">
https://ci.appveyor.com/project/3Fs/vssolutionbuildevent/build/1.0.1</a></p>
<pre>
<code>nuget restore vsSolutionBuildEvent_2013.sln
&
"C:\Program Files (x86)\MSBuild\12.0\bin\msbuild.exe" "vsSolutionBuildEvent_2013.sln" /verbosity:detailed
/logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
/l:"C:\projects\vssolutionbuildevent\packages\vsSBE.CI.MSBuild.1.0.2\bin\CI.MSBuild.dll" /m /p:Configuration=CI_Debug</code>
</pre>
<p>is ok, all working... but with notice:</p>
<pre>
<code>Found conflicts between different versions of the same dependent assembly that could not be resolved. These reference conflicts are listed in the build log when log verbosity is set to detailed.</code>
</pre>
<p>i.e.:</p>
<pre>
<code> "Microsoft.VisualStudio.Shell.10.0, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" was chosen because it was primary and "Microsoft.VisualStudio.Shell.10.0, Version=12.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" was not.
References which depend on "Microsoft.VisualStudio.Shell.10.0, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" [C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.VisualStudio.Shell.10.0\v4.0_10.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.Shell.10.0.dll].
C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.VisualStudio.Shell.10.0\v4.0_10.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.Shell.10.0.dll
Project file item includes which caused reference "C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.VisualStudio.Shell.10.0\v4.0_10.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.Shell.10.0.dll".
Microsoft.VisualStudio.Shell.10.0, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL
References which depend on "Microsoft.VisualStudio.Shell.10.0, Version=12.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" [C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.VisualStudio.Shell.10.0\v4.0_12.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.Shell.10.0.dll].</code>
</pre>
<p>and example for .NET 4.0 - similar as above except sln file -
'vsSolutionBuildEvent.sln':<br>
* <a href=
"https://ci.appveyor.com/project/3Fs/vssolutionbuildevent/build/1.0.2">
https://ci.appveyor.com/project/3Fs/vssolutionbuildevent/build/1.0.2</a></p>
<pre>
<code>warning MSB3274: The primary reference "Microsoft.VisualStudio.Shell.10.0, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" could not be resolved because it was built against the ".NETFramework,Version=v4.5" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v4.0".</code>
</pre>
<p>yes, because all projects with 'vsSolutionBuildEvent.sln' used
target platform .NET 4.0, and AppVeyor provides the
<code>C:\Program Files (x86)\Microsoft Visual Studio
12.0\VSSDK\VisualStudioIntegration\</code> where all libraries
compiled for .NET 4.5</p>
<p>and of course <code>C:\Program Files
(x86)\MSBuild\Microsoft\VisualStudio\v10.0\VSSDK\Microsoft.VsSDK.targets"
was not found.</code> etc.</p>
<p>My variants for this ? :)</p>
<hr>
<p>What I already tested:</p>
<ul>
<li>Replacing in references on this lib: <a href=
"https://www.nuget.org/packages/VSSDK.Shell.10/10.0.4">VSSDK.Shell.10
10.0.4</a> without dependencies, i.e. only
Microsoft.VisualStudio.Shell.10.0.dll for .NET 4.0</li>
<li>And removed the <code><Import
Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v10.0\VSSDK\Microsoft.VsSDK.targets"
/></code> from project file</li>
</ul>
<p>yep, this working variant for your server... but, current mixes
is not convenient at least... i.e. this still require the full
VSSDK, unstable links, etc.</p>
<p>I also found <a href=
"http://blogs.msdn.com/b/aaronmar/archive/2011/05/10/visual-studio-extensions-and-build-servers.aspx">
this story</a><br>
and also have a question for this variant <a href=
"https://social.msdn.microsoft.com/Forums/vstudio/en-US/6e9be046-7b80-4fca-98f4-0ede11f14cb7/continuous-integration-ci-license-for-vssdk-visual-studio-sdk?forum=vsx">
here</a></p>
<p>but.. it will be helpful to see VSSDK2010 for supporting .NET
4.0 on AppVeyor!</p>
<p>OR!<br>
What your variants ? or what you think ?</p></div>regtag:help.appveyor.com,2012-11-13:Comment/359871342015-02-06T23:38:19Z2015-02-06T23:38:19Z.NET 4.0 & VSSDK 2010<div><p>and yes with warning for working variant above i see
<code>C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.VisualStudio.Shell.10.0\v4.0_10.0.0.0</code>
o_O</p>
<p>the main difference for the Solution files above it's a target
platform 'vsSolutionBuildEvent.sln' -> .NET 4.0
'vsSolutionBuildEvent_2012.sln' &
'vsSolutionBuildEvent_2013.sln' -> .NET 4.5</p>
<p>it means server already contains in GAC
Microsoft.VisualStudio.Shell.10.0 for .NET 4.0 ? so, what's going
on ?</p></div>regtag:help.appveyor.com,2012-11-13:Comment/359871342015-02-09T22:21:48Z2015-02-09T22:21:48Z.NET 4.0 & VSSDK 2010<div><p>Right, there is no VS 2010 SDK on build workers. We may support
it in the future.</p>
<p>For now I'd recommend packaging into 7z archive all required
<code>.targets</code> files and reference assemblies with
preserving their original locations and then just
downloading/unpacking them during the build. You can GAC any
assemblies too.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/359871342015-02-11T20:50:02Z2015-02-11T20:50:02Z.NET 4.0 & VSSDK 2010<div><p>Thanks for reply, Feodor!</p>
<blockquote>
<p>We may support it in the future.</p>
</blockquote>
<p>it will be great!</p>
<p>today, I resolved this problem with our special script:<br>
<a href=
"https://gist.github.com/3F/3f2f56dfc2a01dc99c63">https://gist.github.com/3F/3f2f56dfc2a01dc99c63</a></p>
<p>all working fine :)<br>
<a href=
"https://ci.appveyor.com/project/3Fs/vssolutionbuildevent/build/1.2">
https://ci.appveyor.com/project/3Fs/vssolutionbuildevent/build/1.2</a></p>
<p>in general this result after replacing the
VisualStudio.Shell.10.0 (only, as I said above) ..</p></div>regtag:help.appveyor.com,2012-11-13:Comment/359871342015-02-11T21:03:10Z2015-02-11T21:03:10Z.NET 4.0 & VSSDK 2010<div><p>hmm., a little problem</p>
<p><a href=
"https://ci.appveyor.com/project/3Fs/vssolutionbuildevent/build/1.2/artifacts">
https://ci.appveyor.com/project/3Fs/vssolutionbuildevent/build/1.2/...</a></p>
<p>i see next: bin\Releases.zip</p>
<ul>
<li>Bridge_v1.0_[fff3f45][net40].zip</li>
<li>CI.MSBuild_v1.0_[fff3f45][net40].zip</li>
<li>Devenv_v1.0_[fff3f45][net40].zip</li>
<li>Provider_v1.0_[fff3f45][net40].zip</li>
<li>Release_notes.txt</li>
</ul>
<p>but i can't find the <strong>.vsix</strong> file
о_О</p>
<p>should be also the
vsSolutionBuildEvent_v0.11.0.40096_[fff3f45][net40].vsix</p>
<p>in log I also see the normal state:</p>
<pre>
<code>2/11/2015 8:12:39 PM [INFO]: Launching action 'Pack 'vsSBE'' :: Configuration - 'CI_Debug|Mixed Platforms'
2/11/2015 8:12:39 PM [INFO]: Use Script Mode
2/11/2015 8:12:39 PM [INFO]: [Post] finished SBE: Pack 'vsSBE'</code>
</pre>
<p>and in Release_notes.txt:</p>
<pre>
<code>* Configuration: 'CI_Debug' (Folders: Debug)
* .NET version: v4.0;
* Build number: 40092;
* Branch Sha1: fff3f45;
* Branch Name: HEAD;
* Branch revCount: 184;
------------------------------------------
Versions:
* The 'Bridge': v1.0;
* The 'CI.MSBuild': v1.0;
* The 'Devenv': v1.0;
* The 'Provider': v1.0;
* The 'vsSolutionBuildEvent': v0.11.0.40092;</code>
</pre>
<p>Where is <strong>vsix</strong> file :) ?</p></div>reg