error MSB3030: Could not copy the file "C:\Users\mrdav\OneDrive\Documentos\Visual Studio 2022\Projects\yesql.net\samples\Example.NetFramework\bin\Debug\yesql\bin\Debug\yesql\bin\Debug\yesql\bin\Debug\yesql\Customers\customer.sql" because it was not found.
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(5198,5): error MSB3030: Could not copy the file "C:\Users\mrdav\OneDrive\Documentos\Visual Studio 2022\Projects\yesql.net\samples\Example.NetFramework\bin\Debug\yesql\bin\Debug\yesql\bin\Debug\yesql\bin\Debug\yesql\order.sql" because it was not found.
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(5198,5): error MSB3030: Could not copy the file "C:\Users\mrdav\OneDrive\Documentos\Visual Studio 2022\Projects\yesql.net\samples\Example.NetFramework\bin\Debug\yesql\bin\Debug\yesql\bin\Debug\yesql\bin\Debug\yesql\sample.sql" because it was not found.
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(5198,5): error MSB3030: Could not copy the file "C:\Users\mrdav\OneDrive\Documentos\Visual Studio 2022\Projects\yesql.net\samples\Example.NetFramework\bin\Debug\yesql\bin\Debug\yesql\bin\Debug\yesql\bin\Debug\yesql\security.sql" because it was not found.
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(5198,5): error MSB3030: Could not copy the file "C:\Users\mrdav\OneDrive\Documentos\Visual Studio 2022\Projects\yesql.net\samples\Example.NetFramework\bin\Debug\yesql\bin\Debug\yesql\bin\Debug\yesql\bin\Debug\yesql\sql\sample.sql" because it was not found.
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(5198,5): error MSB3030: Could not copy the file "C:\Users\mrdav\OneDrive\Documentos\Visual Studio 2022\Projects\yesql.net\samples\Example.NetFramework\bin\Debug\yesql\bin\Debug\yesql\bin\Debug\yesql\Customers\customer.sql" because it was not found.
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(5198,5): error MSB3030: Could not copy the file "C:\Users\mrdav\OneDrive\Documentos\Visual Studio 2022\Projects\yesql.net\samples\Example.NetFramework\bin\Debug\yesql\bin\Debug\yesql\bin\Debug\yesql\order.sql" because it was not found.
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(5198,5): error MSB3030: Could not copy the file "C:\Users\mrdav\OneDrive\Documentos\Visual Studio 2022\Projects\yesql.net\samples\Example.NetFramework\bin\Debug\yesql\bin\Debug\yesql\bin\Debug\yesql\sample.sql" because it was not found.
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(5198,5): error MSB3030: Could not copy the file "C:\Users\mrdav\OneDrive\Documentos\Visual Studio 2022\Projects\yesql.net\samples\Example.NetFramework\bin\Debug\yesql\bin\Debug\yesql\bin\Debug\yesql\security.sql" because it was not found.
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(5198,5): error MSB3030: Could not copy the file "C:\Users\mrdav\OneDrive\Documentos\Visual Studio 2022\Projects\yesql.net\samples\Example.NetFramework\bin\Debug\yesql\bin\Debug\yesql\bin\Debug\yesql\sql\sample.sql" because it was not found.
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(5198,5): error MSB3030: Could not copy the file "C:\Users\mrdav\OneDrive\Documentos\Visual Studio 2022\Projects\yesql.net\samples\Example.NetFramework\bin\Debug\yesql\bin\Debug\yesql\bin\Debug\yesql\ThirdParties\thirdParty.sql" because it was not found.
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(5198,5): error MSB3030: Could not copy the file "C:\Users\mrdav\OneDrive\Documentos\Visual Studio 2022\Projects\yesql.net\samples\Example.NetFramework\bin\Debug\yesql\bin\Debug\yesql\Customers\customer.sql" because it was not found.
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(5198,5): error MSB3030: Could not copy the file "C:\Users\mrdav\OneDrive\Documentos\Visual Studio 2022\Projects\yesql.net\samples\Example.NetFramework\bin\Debug\yesql\bin\Debug\yesql\order.sql" because it was not found.
This is a very strange error, since msbuild should not look for any sql files from the bin folder, because they are excluded with the property called DefaultItemExcludes. However, I have verified that this property is not set (returns an empty string) when the project points to .NET Framework instead of dotnetcore.