<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>visual studio &#8211; The Server Side Technology</title>
	<atom:link href="https://www.theserverside.technology/it/tag/visual-studio/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.theserverside.technology/it</link>
	<description>in-depth information for tech pros</description>
	<lastBuildDate>Sun, 12 May 2019 12:24:20 +0000</lastBuildDate>
	<language>it-IT</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.0.1</generator>
	<item>
		<title>Azure Service Fabric: warning per incompatibilità dell&#039;architettura della CPU di una libreria</title>
		<link>https://www.theserverside.technology/it/2019/05/12/azure-service-fabric-warning-per-incompatibilita-dellarchitettura-della-cpu-di-una-libreria/?pk_campaign=feed&#038;pk_kwd=azure-service-fabric-warnings-about-mismatched-processor-architecture</link>
					<comments>https://www.theserverside.technology/it/2019/05/12/azure-service-fabric-warning-per-incompatibilita-dellarchitettura-della-cpu-di-una-libreria/?pk_campaign=feed&#038;pk_kwd=azure-service-fabric-warnings-about-mismatched-processor-architecture#respond</comments>
		
		<dc:creator><![CDATA[The Server-Side Technology Staff]]></dc:creator>
		<pubDate>Sun, 12 May 2019 12:11:37 +0000</pubDate>
				<category><![CDATA[Cloud Technologies]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[.net]]></category>
		<category><![CDATA[.net core]]></category>
		<category><![CDATA[azure service fabric]]></category>
		<category><![CDATA[visual studio]]></category>
		<category><![CDATA[x64]]></category>
		<guid isPermaLink="false">https://www.theserverside.technology/?p=1360</guid>

					<description><![CDATA[<div style="margin: 5px 5% 10px 5%;"><img src="https://www.theserverside.technology/wp-content/uploads/2019/05/azure_servicefabric_intro-300x104.png" width="300" height="104" title="" alt="" /></div><div><p>Sviluppando una applicazione per Azure Service Fabric e aggiungendo una libreria .NET Standard al progetto ci si potrebbe imbattere in una serie di warning di Visual Studio come questo</p>
Warning MSB3270 There was a mismatch between the processor architecture of the project being built &#8220;MSIL&#8221; and the processor architecture of the reference &#8220;C:\[&#8230;]&#8221;, &#8220;AMD64&#8221;. 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.
<p>Si tratta di un warning che indica che l&#8217;architettura selezionata per la CPU non è l&#8217;unica supportata da Azure Service Fabric e cioè x64. Probabilmente l&#8217;impostazione è AnyCPU e la libreria funzionerà correttamente ma per fare sparire i warning è sufficiente modificare il target di compilazione nell&#8217;apposita sezione Build di Visual Studio:</p>
<p></p>
<p>oppure impostare l&#8217;architettura target direttamente nel file .csproj del progetto:</p>
&#60;PropertyGroup&#62;
    &#60;TargetFramework&#62;netcoreapp2.0&#60;/TargetFramework&#62;
    &#60;PlatformTarget&#62;x64&#60;/PlatformTarget&#62;
    &#60;RootNamespace&#62;Microsoft.*.Tests&#60;/RootNamespace&#62;
&#60;/PropertyGroup&#62;
<p>E&#8217; sufficiente salvare il file ed effettuare una nuova compilazione : non si dovrebbero visualizzare altri warning.</p>
<p>Ovviamente bisogna ricordare che questa modifica renderà inutilizzabile la libreria nel contesto di una applicazione a 32bit.</p>
</div><img src="https://stats1.vaisulweb.cloud/piwik.php?idsite=1&amp;rec=1&amp;url=https%3A%2F%2Fwww.theserverside.technology%2Fit%2F2019%2F05%2F12%2Fazure-service-fabric-warning-per-incompatibilita-dellarchitettura-della-cpu-di-una-libreria%2F%3Fpk_campaign%3Dfeed%26pk_kwd%3Dazure-service-fabric-warnings-about-mismatched-processor-architecture&amp;action_name=Azure+Service+Fabric%3A+warning+per+incompatibilit%C3%A0+dell%27architettura+della+CPU+di+una+libreria&amp;urlref=https%3A%2F%2Fwww.theserverside.technology%2Fit%2Ffeed%2F" style="border:0;width:0;height:0" width="0" height="0" alt="" />]]></description>
		
					<wfw:commentRss>https://www.theserverside.technology/it/2019/05/12/azure-service-fabric-warning-per-incompatibilita-dellarchitettura-della-cpu-di-una-libreria/?pk_campaign=feed&#038;pk_kwd=azure-service-fabric-warnings-about-mismatched-processor-architecture/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<enclosure url="https://www.theserverside.technology/wp-content/uploads/2019/05/azure_servicefabric_intro.png" length="103496" type="image/jpg" />
<media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://www.theserverside.technology/wp-content/uploads/2019/05/azure_servicefabric_intro-300x104.png" width="300" height="104" medium="image" type="image/jpeg">
	<media:copyright>The Server Side Technology</media:copyright>
	<media:title></media:title>
	<media:description type="html"><![CDATA[]]></media:description>
</media:content>
<media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://www.theserverside.technology/wp-content/uploads/2019/05/azure_servicefabric_intro-300x104.png" width="300" height="104" />
	</item>
		<item>
		<title>Visual Studio: how to run Windows Phone and Android emulators in a virtual machine</title>
		<link>https://www.theserverside.technology/it/2017/01/06/visual-studio-how-to-run-windows-phone-and-android-emulators-in-a-virtual-machine/?pk_campaign=feed&#038;pk_kwd=visual-studio-how-to-run-windows-phone-and-android-emulators-in-a-virtual-machine</link>
					<comments>https://www.theserverside.technology/it/2017/01/06/visual-studio-how-to-run-windows-phone-and-android-emulators-in-a-virtual-machine/?pk_campaign=feed&#038;pk_kwd=visual-studio-how-to-run-windows-phone-and-android-emulators-in-a-virtual-machine#respond</comments>
		
		<dc:creator><![CDATA[Guglielmo Mengora]]></dc:creator>
		<pubDate>Fri, 06 Jan 2017 23:03:41 +0000</pubDate>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Mobile & Devices]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[emulator]]></category>
		<category><![CDATA[hyper-v]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[virtualization]]></category>
		<category><![CDATA[visual studio]]></category>
		<category><![CDATA[visual studio 2015]]></category>
		<category><![CDATA[windows phone]]></category>
		<category><![CDATA[windows server]]></category>
		<category><![CDATA[windows server 2016]]></category>
		<guid isPermaLink="false">http://www.theserverside.technology/?p=1173</guid>

					<description><![CDATA[<div style="margin: 5px 5% 10px 5%;"><img src="https://www.theserverside.technology/wp-content/uploads/2017/01/xamarin_dev_2000-300x174.jpg" width="300" height="174" title="" alt="" /></div><div><p>If you&#8217;re anything like me, virtualization has a great and important role in your everyday work. I use to virtualize most of my development machines, with Visual Studio and the whole stack. That allows me to avoid reconfiguring the environments whenever I need to switch my main machine, plus you get all the benefits of virtualization like for example the ability to backup the whole machine and move it elsewhere.</p>
<p>Up until now, such deployments had just one limitation: you could not use them to run mobile apps since nested virtualization was not supported on Windows 8 or Windows Server 2012 R2 so you could not run emulators that needed Hyper-V. Things changed with Windows 10 and Windows Server 2016 since nested virtualization is now allowed so I thought that was perfect chance to redeploy machines I used for mobile development into VMs.</p>
<p>So Visual Studio 2015 is running and Xamarin ready, you create a new Xamarin Forms project and you want to test that your environment is working fine. You start debug for the Android application but the Visual Studio Android emulator is not working. A &#8220;Hyper-V component is not running&#8221; :</p>
<p>Something happened while starting a virtual machine: &#8216;VS Emulator 5-inch KitKat (4.4) XXHDPI Phone.macoswin&#8217; failed to start. (Virtual machine ID 77D02994-C4A1-4A43-9AE7-7E55C03521D4) The Virtual Machine Management Service failed to start the virtual machine &#8216;VS Emulator 5-inch KitKat (4.4) XXHDPI Phone.macoswin&#8217; because one of the Hyper-V components is not running (Virtual machine ID 77D02994-C4A1-4A43-9AE7-7E55C03521D4). _</p>
<p>Hyper-V seems to be working fine plus it has been installed, something that never succeeded in past Windows (Server) versions but emulators don&#8217;t work. The reason for this is your host is not enabling all Hyper-V features to the guest machine. That&#8217;s probably related to the fact that Hyper-V is also needed for Containers but I&#8217;m not sure about that.</p>
<p>Turns out that you need to tell host that you want to expose ALL Hyper-V functionalities if you want to enable full nested virtualization so you have to log into the host (which might simply be your own notebook or desktop PC or even a Surface Pro, like in my case) and run this command using an elevated shell:</p>
 
 Set-VMProcessor -VMName &#60;VMName&#62; -ExposeVirtualizationExtensions $true

<p>&#60;VMName&#62; obviously is the name of the virtual machine that you want to enable nested virtualization for. Also ensure that such VM has been shut down (no saving, no suspension). Once you reboot, emulators will start working. You might need to re-deploy the emulators VMs just to ensure that everything will be redeployed in a smooth way. You simply need to delete those emulators inside Hyper-V Manager.</p>
<p>The problem is: when you will deploy your test app &#8211; even the simplest one, the one generated by the template &#8211; it will not run inside the emulator. It just starts and shuts down almost instantly, probably crashing.</p>
<p>To fix this problem, you need to change a setting in the virtual machine that is hosting Visual Studio and the emulators as well:</p>
<p></p>
<p>Again, you need to shut the VM down before changing [...]</div><img src="https://stats1.vaisulweb.cloud/piwik.php?idsite=1&amp;rec=1&amp;url=https%3A%2F%2Fwww.theserverside.technology%2Fit%2F2017%2F01%2F06%2Fvisual-studio-how-to-run-windows-phone-and-android-emulators-in-a-virtual-machine%2F%3Fpk_campaign%3Dfeed%26pk_kwd%3Dvisual-studio-how-to-run-windows-phone-and-android-emulators-in-a-virtual-machine&amp;action_name=Visual+Studio%3A+how+to+run+Windows+Phone+and+Android+emulators+in+a+virtual+machine&amp;urlref=https%3A%2F%2Fwww.theserverside.technology%2Fit%2Ffeed%2F" style="border:0;width:0;height:0" width="0" height="0" alt="" />]]></description>
		
					<wfw:commentRss>https://www.theserverside.technology/it/2017/01/06/visual-studio-how-to-run-windows-phone-and-android-emulators-in-a-virtual-machine/?pk_campaign=feed&#038;pk_kwd=visual-studio-how-to-run-windows-phone-and-android-emulators-in-a-virtual-machine/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<enclosure url="https://www.theserverside.technology/wp-content/uploads/2017/01/xamarin_dev_2000.jpg" length="277194" type="image/jpg" />
<media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://www.theserverside.technology/wp-content/uploads/2017/01/xamarin_dev_2000-300x174.jpg" width="300" height="174" medium="image" type="image/jpeg">
	<media:copyright>The Server Side Technology</media:copyright>
	<media:title></media:title>
	<media:description type="html"><![CDATA[]]></media:description>
</media:content>
<media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://www.theserverside.technology/wp-content/uploads/2017/01/xamarin_dev_2000-300x174.jpg" width="300" height="174" />
	</item>
	</channel>
</rss>
