I'm using tfs 2015.3
and I'm trying to compile a web service project (.asmx).
Now, my build failed because of this error: It is an error to user asection registered as allowDefinition='MachineToApplication' beyond application level
I looked online for solutions and found that there is a problem at the build when 2 web.config
is at the same project (one at the root and one is somewhere at the project's folders). Then I saw that a folder named PrecompileWeb
was created with content of another project from the solution.
I tried to build the project at vs2013/2015
and the folder does not get created, as opposed to with msbuild
(which tfs
probably uses).
How can I prevent this folder from appearing? I saw a solution that suggested giving a property of '/p:PreBuildEvent='
or something like that, but it's not working.