Title: C# string interpolation causes SKC5 compiler error · Issue #17 · SharpKit/SharpKit · GitHub
Open Graph Title: C# string interpolation causes SKC5 compiler error · Issue #17 · SharpKit/SharpKit
X Title: C# string interpolation causes SKC5 compiler error · Issue #17 · SharpKit/SharpKit
Description: Hi, I'm maintaining a project that uses SharpKit (5.5.0) and I think I've found a bug in SKC, but I'm not the original developer and am not 100% clear on the SharpKit pipeline. I'd like to know if this is a SharpKit bug, a configuration ...
Open Graph Description: Hi, I'm maintaining a project that uses SharpKit (5.5.0) and I think I've found a bug in SKC, but I'm not the original developer and am not 100% clear on the SharpKit pipeline. I'd like to know if ...
X Description: Hi, I'm maintaining a project that uses SharpKit (5.5.0) and I think I've found a bug in SKC, but I'm not the original developer and am not 100% clear on the SharpKit pipeline. I'd ...
Opengraph URL: https://github.com/SharpKit/SharpKit/issues/17
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"C# string interpolation causes SKC5 compiler error","articleBody":"Hi,\n\nI'm maintaining a project that uses SharpKit (5.5.0) and I think I've found a bug in SKC, but I'm not the original developer and am not 100% clear on the SharpKit pipeline. I'd like to know if this is a SharpKit bug, a configuration issue in my project, or if I'm just doing something fundamentally wrong.\n\nI have a web project that contains both legacy pages using WebForms, and newer pages using WebAPI+SharpKit. The project compiles in Visual Studio, but the build ultimately fails with `Unexpected character `$'`.\n\nI've traced the problem to a codebehind file for a legacy WebForms page - a logging statement was refactored to use string interpolation instead of String.Format(). The solution builds successfully if I revert that line.\n\nI'm assuming that the issue is the SharpKit compiler isn't aware of the C# 6 string interpolation syntax, so when the compiler parses the project, it trips over this syntax (even though the problem code is _not_ in a file that SharpKit needs to compile).\n\nDoes that make sense? If so, are there any options for a workaround? If not, can you suggest where I might look to diagnose this issue?\n\nThanks!\n","author":{"url":"https://github.com/StefanCodes","@type":"Person","name":"StefanCodes"},"datePublished":"2016-01-21T19:37:14.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/17/SharpKit/issues/17"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c534c9fe-7d90-9d82-88d9-5ce56d10ef46 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B3C8:ECBEE:67D833:8F88C7:698E08CD |
| html-safe-nonce | a8dda8455207477dcd757bd95929d2c80e3078b6ab3ff2277537b6d8ea2895a4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCM0M4OkVDQkVFOjY3RDgzMzo4Rjg4Qzc6Njk4RTA4Q0QiLCJ2aXNpdG9yX2lkIjoiNzY3ODE0ODE0Mzg5Mjc5MzU0OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 3dde0f95cbc0f4dd8ca61b11510aa2099480b11fa5417230284fbebf4b4ae6f6 |
| hovercard-subject-tag | issue:128002802 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/SharpKit/SharpKit/17/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c0c2d7602ee5e6c9fb9a194265420349d3d90d19e437e119d0eef4dd58b3b739/SharpKit/SharpKit/issues/17 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c0c2d7602ee5e6c9fb9a194265420349d3d90d19e437e119d0eef4dd58b3b739/SharpKit/SharpKit/issues/17 |
| og:image:alt | Hi, I'm maintaining a project that uses SharpKit (5.5.0) and I think I've found a bug in SKC, but I'm not the original developer and am not 100% clear on the SharpKit pipeline. I'd like to know if ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | StefanCodes |
| hostname | github.com |
| expected-hostname | github.com |
| None | 70a88bfe6d9639434ae7f5a46d15c336b8884978a51526bc55fc57d848f1e3c1 |
| turbo-cache-control | no-preview |
| go-import | github.com/SharpKit/SharpKit git https://github.com/SharpKit/SharpKit.git |
| octolytics-dimension-user_id | 6000024 |
| octolytics-dimension-user_login | SharpKit |
| octolytics-dimension-repository_id | 14582190 |
| octolytics-dimension-repository_nwo | SharpKit/SharpKit |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 14582190 |
| octolytics-dimension-repository_network_root_nwo | SharpKit/SharpKit |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2519b16db5550494a653f9a8837c14ef7df80804 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width