Skip to content

Gotchas

Aaron Sherber edited this page Apr 12, 2018 · 3 revisions

After a build, the PetaPoco project executes the PetaPoco.Cs.Joiner project (console app) to create a new single file PetaPoco.cs version. This file is referenced by the PetaPoco.Tests.Integration.SingleFile project to ensure it builds correctly. It is also included in a solution virtual folder. Do not edit this file as changes will be lost!

PetaPoco and the PetaPoco.Tests.Integration.SingleFile projects are limited to version 5 c# syntax. The reason for this being that PetaPoco can be deployed as a single file included in an existing project, and because PetaPoco supports .NET v4 and above the syntax is limited to v5. However, you can use and we expect the C# 6 syntax in the unit testing projects.

The PetaPoco.Tests.Dep is the old unit test project. It's deprecated and should only be used as referenced for porting old unit tests.