Visual Studio confused by server code inside javascript

前端 未结 7 971
[愿得一人]
[愿得一人] 2021-01-11 19:00

I ran into an annoying problem: the following code gives a warning in Visual Studio.



        
7条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-11 19:53

    This is what I got from Microsoft:

    Unfortunately, this is due to a design limitation of our editor. We have had multiple users provide the same feedback, but we do not have a good solution at this time, other than to avoid server-side generation of client script. We will consider this issue in our planning for the next Visual Studio release.

提交回复
热议问题