How to fix the error - The target "_CopyBinDeployableAssemblies" does not exist in the project? - visual-studio-2010

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"?

Related

Visual Studio for Mac trying to find .NET Full Framework in build properties

Visual Studio for Mac (Version 8.8.7 (build 18)) is unable to upgrade netcoreapp3.1 asp.net mvc project to .net5.0 target framework. It throws below error:
/usr/local/share/dotnet/sdk/3.1.405/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(5,5):
Error NETSDK1005: Assets file 'App.Mvc/project.assets.json' doesn't
have a target for '.NETFramework,Version=v5.0'. Ensure that restore
has run and that you have included 'net50' in the TargetFrameworks for
your project. (NETSDK1005) (App.Mvc)
It will create a net5.0 mvc project from scratch alright but upgrade fails with the error. I've also tried to move all the files over into a new net5.0 from my netcoreapp3.1 project and somehow it converts the new project to .net full framework again. There's no clear indication as to what's causing this issue.
Ok I figured it out. I had a global.json pointing to version 3.1.*. Had 5.0.102 and it worked.

Upgrading from Entity Framework 6.2 to 6.3.0 in NuGet

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.

Nuget restoring errors

I am trying to Build list of Projects, which was developed on MVC3 using visual studio 2012 with .net framework 4.
When I try to Build solution using VS2017, I am getting nuget Package error on restoring it.
I went all the possible solutions-
Tried to uninstall and reinstall it.
Changed framework and cleaned the solution.
But, still I cannot get rid of the error. Can anyone help me ?
This is the error which I am encountered with
When I try to reinstall or update or restore it.I am getting following error
It is pretty simple actually and a common oversight.
If you check,you will find out the visual studio 2017 does not support mvc3.
Update accordingly

Create DSL Package in visual studio 2010

I have a DSL project for VS2005(Active Writer Customized) .I want to make it compatible with VS2010.So
I migrated the project with DslProjectsMigrationTool.exe which comes with vs2010 SDK.
Created new dsl project in vs2010 and moved my migrated codes to the new project.
Here my Dsl project is building fine.But DslPackage project is showing the following build error.
Error 48 : No Visual Studio registration attribute found in this assembly.
But some blogs relates this error to RegPkg.And i don't have any idea about RegPkg.
Any solutions to resolve build error?
This looks like it could be to do with the RegPkg version. Perhaps try the solution discussed here, which effectively uses Reflector to check which version of RegPkg is expected.

Error setting up S#arp Architecture 1.6 project from the Visual Studio 2010 project template in a 64bit O/S

I'm trying to get a brand new Sharp Architecture 1.6 project set up. My environment is Windows 7 64bit, running Visual Studio 2010. I have followed the instructions provided in the VS2010_ReadMe.txt.
In VS2010 I do File | New | Project, select S#arp Architecture Application, give it a name and hit 'OK'. And I receive the following errors:
"A problem was encountered creating the sub project 'sharptest.Core'. A project with that name is already opened in the solution."
"A problem was encountered creating the sub project 'sharptest.ApplicationServices'. A project with that name is already opened in the solution."
... (it continues like this for each project)
I have not found any clear documentation regarding this issue. I would appreciate help from someone who has successfully gotten a project based on the sharp architecture project template up and running successfully on a 64bit O/S running vs2010. Thanks.
I had the same issue. However, my issue was resolved from creating the project in a different folder. I receive the error when I try to create the solution in
C:\Users\Sam\Documents\Visual Studio 2010\Projects\TestProject
Changing this to
C:\Code\TestProject
and I don't receive the error.
Do you have any subversion programs like AnkhSVN installed? It would be worth uninstalling this and trying again. Best advice I can offer.

Resources