Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

CopyWin32Resources failed with exit code -1

$
0
0

I keep getting the error : CopyWin32Resources failed with exit code -1
every time I make a new XarmarinForms project and build my UWP app. At first I was just updating the Xamarin.Forms nuget and the Microsoft.NetCore.UniversalWindowsPlatform nuget and that was doing just fine. However, today I keep getting this error even after updating all my nuget packeges. It believe it occurs in the Microsoft.NetCore.UniversalWindowsPlatform nuget package according the the following build logs:

1>------ Build started: Project: WindowsFluentDesignSample.UWP, Configuration: Debug x86 ------
1>  WindowsFluentDesignSample.UWP -> C:\Users\adham\Source\Repos\WindowsFluentDesignSample\WindowsFluentDesignSample\WindowsFluentDesignSample.UWP\bin\x86\Debug\WindowsFluentDesignSample.UWP.exe
1>C:\Program Files (x86)\Microsoft Visual Studio\Preview\Enterprise\MSBuild\Microsoft\VisualStudio\v15.0\AppxPackage\Microsoft.AppXPackage.Targets(3093,5): warning : APPX4001: Build property AppxBundlePlatforms is not explicitly set and is calculated based on currently building architecture. Use 'Create App Package' wizard or edit project file to set it.
1>C:\Program Files (x86)\Microsoft Visual Studio\Preview\Enterprise\MSBuild\Microsoft\VisualStudio\v15.0\AppxPackage\Microsoft.AppXPackage.Targets(2487,5): warning APPX0104: Certificate file 'WindowsFluentDesignSample.UWP_TemporaryKey.pfx' not found.
1>C:\Program Files (x86)\Microsoft Visual Studio\Preview\Enterprise\MSBuild\Microsoft\VisualStudio\v15.0\AppxPackage\Microsoft.AppXPackage.Targets(2487,5): warning APPX0107: The certificate specified is not valid for signing. For more information about valid certificates, see http://go.microsoft.com/fwlink/?LinkID=241478.
1>C:\Users\adham\.nuget\packages\microsoft.net.uwpcoreruntimesdk\2.1.2\tools\CoreRuntime\Microsoft.Net.CoreRuntime.targets(238,5): error : CopyWin32Resources failed with exit code -1
========== Build: 0 succeeded, 1 failed, 1 up-to-date, 0 skipped ==========
========== Deploy: 0 succeeded, 0 failed, 0 skipped ==========

When I double click 1>C:\Users\adham\.nuget\packages\microsoft.net.uwpcoreruntimesdk\2.1.2\tools\CoreRuntime\Microsoft.Net.CoreRuntime.targets(238,5) it takes me to Microsoft.Net.CoreRuntime.targets where I also believe that the error is happieing in the Line 238 (Build logs) which is

<WireUpCoreRuntime
        AppxManifest="@(FinalAppxManifest)"
        AppxPackagePayload="@(AppxPackagePayload)"
        OutputPath="$(_WireUpCoreRuntimeOutputPath.TrimEnd('\'))"
        TargetRuntime="$(TargetRuntime)"
        TargetArch="$(_PlatformTargetForCoreRuntime)"
        FrameworkPackages="@(FrameworkPackagesForTargetArchitecture)"
        CoreRuntimeSDKLocation="$(CoreRuntimeSDKLocation)"
        CopyWin32ResourcesLocation="$(CopyWin32ResourcesX86Path)">

This prevents me from doing any projects so I need quick help


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>