Error PRI175: 0x80073b0f - Processing Resources failed with error: Duplicate entry. MyApplication (Package) C:\MyApplication (Package)\GENERATEPROJECTPRIFILE
<- This is the error I always get if I want to compile my .NET 5 WinUI 3 (0.8.1) Desktop Packaged Project.
Either on the Packaging Project or on the main Application Project.
And bevor this error ther is always this error:
Error PRI222: 0x80073b0f - Unspecified error occurred. MyApplication (Package) C:\MyApplication (Package)\GENERATEPROJECTPRIFILE
On the internet, I couldn't find any solution.
Can please somebody help?
Some additional info:
I have the latest version of Visual Studio Community (16.10.3)
I also have the latest version of my Project Reunion/Windows App SDK NuGet packages (0.8.1)
... and each other NuGet is also up to date
My C# application uses some [DllImport] and [ComImport]
I also use the PInvoke from Microsoft's CsWin32 project
I tried to create a new project and copy code file content by file content into new files but it does not help.
I had the same error, what I did was to remove all the images from the assets and it worked, then I was adding little by little until I found the assets that gave error.
I understand that the error is generic, VS does not help much.
Related
I'm using visual 2019, ASP.NET MVC core 2.2.0
My project debug ok, build no error but when I publish it give me an error like this
Detail file in AppData\Local\Temp\tmp76C2.tmp
System.AggregateException: One or more errors occurred. --->
Microsoft.WebTools.Shared.Exceptions.WebToolsException: Build failed.
Check the Output window for more details. --- End of inner
exception stack trace ---
---> (Inner Exception #0) Microsoft.WebTools.Shared.Exceptions.WebToolsException: Build failed.
Check the Output window for more details.<---
Microsoft.WebTools.Shared.Exceptions.WebToolsException: Build failed.
Check the Output window for more details.
How can I fix it?
Check out the output window of visual studio when publishing, read all lines to find any error, then fix it. For example it might be a problem for copying files to publish folder after building. So you won't get any error on build as well.
Look for something like this:
I ran into this error in VS 2019/Core 3.1. In my case, the Publish displayed a bunch of errors with the Bundler, which a regular build didn't show. Eventually found the Web Publish Activity window gave a clue: it shows line numbers for errors it finds, and the first error with the Bundler there was the problem, apparently. Turned out it didn't like an async function in the JS file. I removed that and it published OK.
For me the problem was that I updated de .net core version (2.2 to 5) of my project and forgot to change the .net version target on my publish profile.
Update Microsoft.Net.Compilers package.
I have also encountered this problem when I was going to publish my API.After that, I found my publishing folder does not exist in my local PC.
It could also be due to a problem with the signature in your deployment options. Make sure to select a valid certificate.
I encountered this problem in Visual Studio 2022 when try to publish Blazor project. I tried many things (Clean, Rebuild, clear Nuget Cache etc) but nothing worked. Finally I used this command on the solution folder with Powershell (run as Admin)
dotnet workload install wasm-tools
Then I reopened Visual Studio and publish worked
This may be helpful for someone else.
I got below error while publishing the code.
Microsoft.WebTools.Shared.Exceptions.WebToolsException: Build failed. Check the Output window for more details.
We upgraded .Net core 5.0 to 6.0 (VS 2022) and trying to provide new build to higher environments.
After spending little time around the error in output window and logs (published by Visual Studio) i found publish profile(FolderProfile.pubxml) of our project is targeting to .Net 5.0 where is our project now upgraded to .NET 6.0 hence the publish was unsuccessful.
Modified tag in FolderProfile.pubxml
<TargetFramework>net6.0</TargetFramework>
Entity Framework 6.3.0 was published on 2019 Sep 23. I have two projects in my solution that were using 6.2 and I tried to upgrade to 6.3.0 via NuGet.
One project called DatabaseInterface has an output type of "class library". The other project outputs a "console application".
When I run the upgrade from NuGet the following error happens for the project that is the class library.
An error occurred while applying transformation to 'App.config' in
project 'DatabaseInterface' No element in the source document matches
'/configuration/configSections/section[#name='entityFramework']'
This project, called DatabaseInterface does not even have an App.config file so the error is referring to a file that does not exist. This project has a packages.config file.
Published problems with a similar error are related to web projects so they are probably not closely relevant to my problem. What is the solution to this problem?
Context: Visual Studio 2017 Community, Visual Studio 2019 Community, Windows 10
Uninstall 6.2 and then install 6.3. This seems to cause the automatic deletion of packages.config and there will be no error associated with App.config nor will there be the creation of that file. Subsequent builds do not seem to require the presence of packages.config.
I am trying to build a project that was created with MVC 4.0. There were errors with 'AllowAnonymous' attribute, because the build server did not have MVC 4.0 installed. So, I started installing MVC 4.0, but the setup prompted me to install Visual Studio 10.0 SP1 first, so I installed VS 10.0 SP1 and then installed MVC 4.0. The errors related to 'AllowAnonymous' attribute went away after the next build. But now I am getting an error which says - The target "_CopyBinDeployableAssemblies" does not exist in the project.I have tried a couple of solutions found on stack overflow that suggested
Importing the project Microsoft.Application.Web.Targets and Microsoft.Web.Publishing.Targets.
Install/Repair using the exe at http://go.microsoft.com/fwlink/?LinkId=253458.
But nothing has worked so far.
Please help me.
I managed to resolve this error by adding an empty targets tag in the .csproj file for the project:
<Target Name="_CopyBinDeployableAssemblies"></Target>
Found this on stackoverflow itelf in the response to a similar question:
Why do I get the error "The target GatherAllFilesToPublish does not exist"?
Using Visual Studio 2017, Community Edition.
I'm doing the tutorial (/guides/xamarin-forms/getting-started/hello-xamarin-forms/quickstart/) for Xamarin and I'm getting a similar error, whenever I try to update any of the Android packages. If I try to update Xamarin.Androix.Support.Vector.Drawable, I get the following error message:
Severity Code Description Project File Line Suppression State
Error Unable to resolve dependencies. 'Xamarin.Android.Support.Vector.Drawable 25.4.0.2' is not compatible with 'Xamarin.Android.Support.v7.AppCompat 23.3.0 constraint: Xamarin.Android.Support.Vector.Drawable (= 23.3.0)'. 0
I went to the Android SDK manager and updated everything I could find there, still no luck. Any advice is much appreciated.
You need to first upgrade Xamarin.Android.Support.v7.AppCompat. If it's an option, you could just upgrade ALL packages in one shoot using update option from Packages context menu on the solution explorer.
Just playing with Xamarin.Forms, downloaded sample project TipCalc from here. When I try to open the solution in Xamarin Studio I am getting this error.
When i try to build the project, i get this error
Error MSB4019: The imported project "C:\Program Files
(x86)\MSBuild\Microsoft\Portable\v4.5\Microsoft.Portable.CSharp.targets"
was not found. Confirm that the path in the declaration is
correct, and that the file exists on disk. (MSB4019) (TipCalc.Android)
Please someone guide me, what should i configure in my project, to make this to run successfully. I am using Xamarin Studio 5, my OS is windows 7 ultimate.
I installed Portable Library Tools followed by Xamarin.Android to fix this. This error occurs if we try to load the pcl project without installing portable library tools, because Xamarin checks for following file in the machine while loading pcl project.
C:\Program Files
(x86)\MSBuild\Microsoft\Portable\v4.0Microsoft.Portable.CSharp.targets