I am working with an old C # LightSwitch HTML project that connects to SharePoint and I need to make a few changes. Unfortunately, this is not enough to justify the transition to another technology / platform, but in any case ...
I am running Visual Studio 2015 and the project will not be built. Of course, I googled and tried everything I can think of, and, in short, even if I create a new C # LightSwitch HTML project and try to build it, it fails. Here is the error I get:
An exception occurred while creating the database for the application. An error occurred while creating the deployment plan. Deployment cannot continue. SQL0 error: Failed to load the required principal with the identifier "Microsoft.LightSwitch.DataRetentionDeploymentPlanModifier.v5.0". SQL0 error: Failed to load the required principal with identifier "Microsoft.LightSwitch.LocalDbLocationModifier.v5.0". GraphicsApp C: \ Program Files (x86) \ MSBuild \ Microsoft \ VisualStudio \ v14.0 \ LightSwitch \ v5.0 \ Microsoft.LightSwitch.targets 160
If we go to line 160 (double-click by mistake), I see this (starting from line 160):
<BuildSchema Inputs="@(ServerMetadataFiles)"
ServerGeneratedMetadataFiles="@(ServerGeneratedMetadataFiles)"
Collation="$(DatabaseCollation)"
DatabaseProject="@(_DatabaseProject)"
ProjectPath="$(MSBuildProjectFullPath)"
OutputDirectory="Bin\Data"
SqlExpressInstanceName="$(SqlExpressInstanceName)"
ExternalDataSources="@(ServerExternalDataSources)"
Condition="'$(SkipBuildSchema)' == ''"/>
, , , , . V4 , :
" ... [] "
, - , , .