unchase / Unchase.Odata.Connectedservice

:scroll: A Visual Studio extension for connecting to OData services with generating client-side C# proxy-classes
Apache License 2.0
44 stars 13 forks source link

CS8103 Combined length of user strings used by the program exceeds allowed limit because of embedded Edmx #11

Closed JohnLeyva closed 4 years ago

JohnLeyva commented 5 years ago

Edmx included in Reference.cs could be very big, which generates the following error while compiing

Severity Code Description Project File Line Suppression State Error CS8103 Combined length of user strings used by the program exceeds allowed limit. Try to decrease use of string literals. PROJECTXXXX PATHYYYY 1 Active

        private abstract class GeneratedEdmModel {
          private const string Edmx = @"....";
  }

An option is to include the metadata file in the project as content

unchase commented 5 years ago

Hi, @JohnLeyva Can you send me (spiritkola@hotmail.com) a file with metadata so that I reproduce the error?

JohnLeyva commented 5 years ago

Hi Nickolay

I included the metadata file,

The generation works in VS2019, but does not compile because of the indicated issue.

To open generated files in some occasions is better to use vs code.

Regards

John


From: Chebotov Nickolay notifications@github.com Sent: Thursday, September 26, 2019 9:57:14 AM To: unchase/Unchase.Odata.Connectedservice Unchase.Odata.Connectedservice@noreply.github.com Cc: John Leyva leyva_john@hotmail.com; Mention mention@noreply.github.com Subject: Re: [unchase/Unchase.Odata.Connectedservice] CS8103 Combined length of user strings used by the program exceeds allowed limit because of embedded Edmx (#11)

Hi, @JohnLeyvahttps://github.com/JohnLeyva Can you send me (spiritkola@hotmail.commailto:spiritkola@hotmail.com) a file with metadata so that I reproduce the error?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/unchase/Unchase.Odata.Connectedservice/issues/11?email_source=notifications&email_token=AAJPDOVWB7APSQ52TMWSXD3QLR2OVA5CNFSM4I2LFQX2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7U3FVQ#issuecomment-535409366, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AAJPDORXYHO3SPHGUIEEBP3QLR2OVANCNFSM4I2LFQXQ.