I'm using visual studio 2019 ,after changing my code in console application or in asp.net core nothing happens,and changes not working.
When asking for assistance, share your code or enough code where the community can reproduce the issue. Explain the steps to reproduce the issue with the expected results and actual results.
Making statements like "not working" is meaningless without context.
And the usage about @functions directive , you could have a look at the
official documentation .
Best Regards ,
Sherry
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
Member
112 Points
391 Posts
Changes not working after running the application
Apr 18, 2019 01:33 PM|vahid.ch|LINK
HI there.
I'm using visual studio 2019 ,after changing my code in console application or in asp.net core nothing happens,and changes not working.
All-Star
43741 Points
18715 Posts
Re: Changes not working after running the application
Apr 18, 2019 01:44 PM|mgebhard|LINK
When asking for assistance, share your code or enough code where the community can reproduce the issue. Explain the steps to reproduce the issue with the expected results and actual results.
Making statements like "not working" is meaningless without context.
Member
112 Points
391 Posts
Re: Changes not working after running the application
Apr 18, 2019 05:12 PM|vahid.ch|LINK
thanks for reply.
it doesn't matter which code I write.after building my application nothing changes,
imagine here is my code:
after starting console application ,it shoes
learning c#
but as soon as I change my code to:
and then I build my app and start it again ,instead of showing "learning asp.net " it still shoes "learning c#"
here is my real code:
after changing to currentCount += 3 and build the app,it still increases +1 instead of +3.
here is another example about this issue,as soon as I executed the console application it shoes nothing.
All-Star
43741 Points
18715 Posts
Re: Changes not working after running the application
Apr 18, 2019 05:40 PM|mgebhard|LINK
The Razor code shown is invalid. onclick is a JavaScript construct which runs in the browser. The @functions is Razor syntax and runs on the server.
There not enough code to determine the issue with the console application.
Participant
1470 Points
447 Posts
Re: Changes not working after running the application
Apr 19, 2019 09:28 AM|Sherry Chen|LINK
Hi vahid.ch ,
As mgebhard said , you seem to confuse the onclick and @functions .
If you want to count by onclick method , you could refer to the following
And the usage about @functions directive , you could have a look at the official documentation .
Best Regards ,
Sherry
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.