visual-studio-2013

T4 reports Compiling transformation: Invalid token 'this' in class, struct

♀尐吖头ヾ 提交于 2020-02-01 10:56:50
问题 Attempting to run the T4 templates for Immutable Object Graph gives errors of ╔═══════╦═══╦══════════════════════════════════════════════════════════════════════════════════════════════════╦═════════════════════════════════════════════════════════╦═══╦════╦══════╗ ║ Error ║ 5 ║ Compiling transformation: Invalid token 'this' in class, struct, or interface member declaration ║ c:\dev\ImmutableObjectGraph-master\2013\Demo\Message.tt ║ 1 ║ 1 ║ Demo ║ ║ Error ║ 6 ║ Compiling transformation: Method

T4 reports Compiling transformation: Invalid token 'this' in class, struct

走远了吗. 提交于 2020-02-01 10:56:49
问题 Attempting to run the T4 templates for Immutable Object Graph gives errors of ╔═══════╦═══╦══════════════════════════════════════════════════════════════════════════════════════════════════╦═════════════════════════════════════════════════════════╦═══╦════╦══════╗ ║ Error ║ 5 ║ Compiling transformation: Invalid token 'this' in class, struct, or interface member declaration ║ c:\dev\ImmutableObjectGraph-master\2013\Demo\Message.tt ║ 1 ║ 1 ║ Demo ║ ║ Error ║ 6 ║ Compiling transformation: Method

How do I use TypeScript within Visual Studio 2013?

余生长醉 提交于 2020-01-30 08:42:07
问题 I am looking to use TypeScript within Visual Studio 2013. For some reason, however, I cannot create a project. Instead, Visual Studio only allows me to be directed to a web page which tells me to install a plugin. After I've installed the plugin, as well as rebooting my computer a few times; still no dice. 回答1: Uninstall all typescript items from Programs and Features in your control panel. Then reinstall this plugin : http://www.microsoft.com/en-us/download/details.aspx?id=34790 Make sure

How to change the color of Visual Studio syntax highlighting?

六月ゝ 毕业季﹏ 提交于 2020-01-30 05:41:31
问题 VS default color scheme is really tired of watching like: 回答1: All Visual Studio versions have this available here: Menu > Tools > Options > Environment > Fonts and Colors Recent versions of Visual Studio come with 4 built-in themes that can be changed from: Menu > Tools > Options > Environment > General 来源: https://stackoverflow.com/questions/45854094/how-to-change-the-color-of-visual-studio-syntax-highlighting

Unable to start the Windows Phone Emulator

六月ゝ 毕业季﹏ 提交于 2020-01-29 02:48:04
问题 I've seen this error several times. Each time I google deeply and finally made me reinstall my windows and all stuffs. Please help, I don't want to reinstall everything again. The error is: Windows Phone Emulator Unable to start the Windows Phone Emulator Windows Phone Emulator is unable to start because the hypervisor is not running. The likely cause is that hardware-assisted virtualization is not enabled. Check your computer's BIOS to ensure that hardware- assisted virtualization and

Timer - Show a message after a specific time has passed

大憨熊 提交于 2020-01-26 03:48:25
问题 I have got a timer on my form like and it shows the current time (based on my system) what i want to do is for example current time is "6:22 PM" so when it reaches "6:24 PM" it should show a Message as "You have to submit a report" how do i do? Here is my code. private void timer1_Tick(object sender, EventArgs e) { label1.Text = DateTime.Now.ToString("MM-dd-yyyy hh:mm:ss tt"); } This just shows the current time.Can someone help me on this "message box"? 回答1: int minutes = Convert.ToDateTime(

App runs normally but has “errors” during design time: “does not exist in namespace” and “an error occured when finding the resource dictionary”

限于喜欢 提交于 2020-01-25 23:56:11
问题 My application has certain errors, in its error box during design time, to do with it's resource dictionary. For example, in my Main Window a resource dictionary is called as follows; <Window.Resources> <ResourceDictionary Source="Resources.xaml"/> </Window.Resources> I get a blueline on the middle line saying "An error has occurred while finding the resource dictionary "Resources.xaml". Yet, the Resources.xaml is in the root folder of the project, and so is the MainWindow. I am aware that

run time error when using a mex file, maybe due to memory allocation

混江龙づ霸主 提交于 2020-01-25 21:24:12
问题 I've written a mex function named mx_minimum_power that I'm calling it in MATLAB as follows: [Fs,Fd,pow_remained] = mx_minimum_power(A11,A12_real,A12_imag,A13_real,A13_imag,A22,A23_real,A23_imag,A33,MatSize); A11, A12_real, A13_real, A22, A23_real, A33 are 30555x1 single matrices A12_imag, A13_imag, A23_imag are 1x1 single variables MatSize is a 1x1 double variable with the value 30555 , that is the size of matrices In an iteration, each time the hermitian matrix A is constructed and

ShimNotImplementedException after upgrading Visual Studio 2013 and Microsoft Fakes v12

五迷三道 提交于 2020-01-25 10:59:06
问题 We are utilizing Microsoft Fakes with Visual Studio 2013. After updating to Visual Studio 2013 Update-4 or Update-5, we are getting ShimNotImplementedException 's in our tests. We have followed instructions found in other SOF questions and turned off the SpecificVersion of our Microsoft.QualityTools.Testing.Fakes references. This allows a compile but the tests still fail when run. 回答1: The hint we needed to solve this was found in MSDN forums. The underlying issue is that the legacy tests did

ShimNotImplementedException after upgrading Visual Studio 2013 and Microsoft Fakes v12

假如想象 提交于 2020-01-25 10:59:05
问题 We are utilizing Microsoft Fakes with Visual Studio 2013. After updating to Visual Studio 2013 Update-4 or Update-5, we are getting ShimNotImplementedException 's in our tests. We have followed instructions found in other SOF questions and turned off the SpecificVersion of our Microsoft.QualityTools.Testing.Fakes references. This allows a compile but the tests still fail when run. 回答1: The hint we needed to solve this was found in MSDN forums. The underlying issue is that the legacy tests did