Bug 25063 - Missing Files
Summary: Missing Files
Status: RESOLVED DUPLICATE of bug 21865
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: NuGet ()
Version: 5.5
Hardware: PC Windows
: Normal normal
Target Milestone: master
Assignee: Matt Ward
URL:
Depends on:
Blocks:
 
Reported: 2014-12-04 05:11 UTC by julius paulite
Modified: 2015-01-09 10:18 UTC (History)
1 user (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED DUPLICATE of bug 21865

Description julius paulite 2014-12-04 05:11:07 UTC
Error	3	This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them.  For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is ..\..\packages\Xamarin.Forms.1.0.6186\build\portable-win+net45+wp80+MonoAndroid10+MonoTouch10\Xamarin.Forms.targets.	D:\MobileSaf1.2\trunk\SmartMobileSAF\trunk\MobileSAF\MobileSAF\MobileSAF\MobileSAF.csproj	74	5	MobileSAF



Error	4	This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them.  For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is ..\..\packages\Xamarin.Forms.1.0.6186\build\portable-win+net45+wp80+MonoAndroid10+MonoTouch10\Xamarin.Forms.targets.	D:\MobileSaf1.2\trunk\SmartMobileSAF\trunk\MobileSAF\MobileSAF\MobileSAF.Android\MobileSAF.Android.csproj	80	5	MobileSAF.Android
Comment 1 Matt Ward 2014-12-04 05:33:36 UTC
My guess is that you have upgraded Xamarin.Forms in Xamarin Studio so you are no longer using version 1.0.6186 of Xamarin.Forms.

If this is the case then there is a known bug 21865 with Xamarin Studio not updating one of the targets that Visual Studio adds to the project file.

Currently the workaround is to edit your .csproj file and remove the EnsureNuGetPackageBuildImports section that looks similar to the following:

<Target Name="EnsureNuGetPackageBuildImports"
BeforeTargets="PrepareForBuild">
    <PropertyGroup>
      <ErrorText>This project references NuGet package(s) that are missing on
this computer. Enable NuGet Package Restore to download them.  For more
information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing
file is {0}.</ErrorText>
    </PropertyGroup>
    <Error
Condition="!Exists('..\packages\Xamarin.Forms.1.2.2.6243\build\portable-win+net45+wp80+MonoAndroid10+MonoTouch10\Xamarin.Forms.targets')"
Text="$([System.String]::Format('$(ErrorText)',
'..\packages\Xamarin.Forms.1.2.2.6243\build\portable-win+net45+wp80+MonoAndroid10+MonoTouch10\Xamarin.Forms.targets'))"
/>
  </Target>
Comment 2 Matt Ward 2015-01-09 10:18:02 UTC
Marking as resolved. The underlying bug should be fixed in Xamarin Studio 5.8

*** This bug has been marked as a duplicate of bug 21865 ***