lprun -compileonly connects to databases specified in Connection element
I don't think lprun should be attempting to connect to databases specified in the <Connection> element of the file when -compileonly is specified.
I'm trying to verify that linqpad scripts are not broken by code changes during an automated build, but it fails if the connection string is not pointing at a running database instance.
I'm using 5.26.01
I'm trying to verify that linqpad scripts are not broken by code changes during an automated build, but it fails if the connection string is not pointing at a running database instance.
I'm using 5.26.01
Comments
We're only using the connection string as a convenient way for different people to run the same script with their own connection string, without having to save it somewhere else and copy and paste it into every script they want to run. We aren't using any ORM type entity mapping, etc. because all of our data access goes through our own libraries, they just need to be provided a connection string as configuration. We really just want to ensure that changes to our own libraries won't break our own scripts.
If
Connection.ConnectionString
compiled, but had a null value, that would be enough for us. If this was hidden behind a command line argument to lprun so as not to cause breaking changes, that would also be fine.