According to some post on the web, I noticed that there is compatibility issue between VisualStudio 2012 and Nlog.
So google bring me on this web page and advised me to use Nuget package installer instead of classical installer but it did'nt work. (I can't see the nlogger template in the list...
Then, I found this question on stackoverflow, and it also didn't work. I precise that I'm using the "update 2" of VS2012. I'm looking for a workaround tight now.
Thanks in advance
If you are looking for the nlogger code snippet, I didn't find it either. But it is not a blocker.
So instead of typing nlogger and pressing two tabs, just use this code:
private static Logger _logger = LogManager.GetCurrentClassLogger();
I am using the nuget package for nlog, and worked without any problems (minus the code snippet).
Sorry I don't have enough reputation to post pictures, so... What you are looking for:
NLog
Nlog - Advanced .NET and Silverlight Logging
Current version (July of 2013): 2.0.1.2
Related
I have created a .NET Core server project that has a lot of classes. I need to generate a class diagram UML, and when I look on the Microsoft documentation site (I think it is only for vs2015), it tells me to click on the "Architecture" menu and click "Add New Diagram", but I couldn't find this button or function anywhere.
Is this function not supported anymore, or have they just not added this function yet? All the forums kept reporting it as a bug, but there's no workaround stated in the forums.
I am open to suggestions. Also I am using VS Enterprise.
Sadly Microsoft removed this functionality in VS 2017.
https://blogs.msdn.microsoft.com/visualstudioalm/2016/10/14/uml-designers-have-been-removed-layer-designer-now-supports-live-architectural-analysis/
I've encountered a problem after upgrading from Visual 2015 RC to Full version. Fody.PropertyChanged doesn't work in UWP (it worked with RC). After using reflector there is no raisepropertychanged injection, no warnings, nothing. Any ideas?
EDIT: it doesn't even create FodyWeavers.xml after installing it with new Nuget.
The reason is that Nuget deprecated several features for Universal Projects
See here for the full details https://github.com/Fody/UniversalAppSample/
Since CodedUI does not support Infragistics winforms by default, a hotfix has to be installed which imports a specific assembly enabling codedUI to work with infragistics controls. This hotfix works with vs2010 pretty fine, but not actually with vs2012. Their site says that this hotfix should work with vs2012 but I just can't install this hotfix because of a compatibility issue. When I try to install it, this is the error message I get:
KB2696646 does not apply, or is blocked by another condition on your computer. Please see http://go.microsoft.com/fwlink/?LinkId=225649 for more details.
Is there a way to get the assembly without installing this hotfix?
Or could someone just share it? This is the one I need: Infragistics4.Win.CodedUITest.UIA.VS11.v12.2.dl
Thanks
Please take a look at : http://www.infragistics.com/community/forums/p/79850/402667.aspx#402667 for more details. Also there you could find mentioned assembly.
I need some guidance on how to have SpecFlow installed on my Visual Studio 2010 development machine which is also leveraged for SharePoint 2010 development.
The .feature extensions causes some bad behavior...
I just posted a version of SpecFlow that resolves this issue. You can get more info in this post.
What I had to do to resolve the issue was download the source and change the extension for the feature files to .sfeature.
I think the problem here might be that SharePoint 2010 and SpecFlow make use of the .feature file extension. I did some research into this and found a SpecFlow Google group query about a similar problem. The answer given to the user with the problem was:
Hi, I'm sure you know the SharePoint
project better then me. Do you see
any conceptual idea how this conflict
could be resolved? What parts are
conflicting, the syntax coloring or
the generation? Is the SharePoint
".feature" file can also be placed in
a normal c#/vbnet project?
Tips for
manual workarounds: to switch off the
automatic recognition of the .feature
file for the
genrator:
- rename key ".feature" to ".featureX" at "HKEY_LOCAL_MACHINE\SOFTWARE
\Microsoft\VisualStudio\10.0\Generators{FAE04EC1-301F-11D3-
BF4B-00C04F79EFBC}.feature" (this is
for C# projects)
you can still set the generation manually in VS by specifying
"SpecFlowSingleFileGenerator" for the
"custom tool" property of the file
to switch off syntax coloring:
remove (or rename) the shortcut at C:\Program Files\Microsoft Visual
Studio
10.0\Common7\IDE\Extensions\TechTalk\SpecFlow
Br, Gaspar
Maybe you could try the registry hack mentioned above and that might let you use SPecFLow with SharePoint?
The original thread can be found here:
http://groups.google.com/group/specflow/browse_thread/thread/4e6a80f3aa3624c2?pli=1
Resharper includes various analysis rules which can be run on your solution from inside Visual Studio but is it possible to run these from say the commandline or as part of your autobuild? Resharper seems to be focused on running in Visual Studio but can it be invoked on solution or project files from outside the IDE?
UPDATE: Seems like TeamCity 7.0 EAP includes a way to execute the code-analysis while building
(blog post) so at least it can somehow be invoked and utilized as part of a CI process.
No, this feature is not currently offered by ReSharper. There is a thread on the JetBrains website related to this question and it can be found here.
Here's a quote:
Currently ReSharper has no interface
from running in a standalone batch
application. However, it is possible
to write such an application that
provides the functionality you're
looking for using ReSharper OpenAPI.
So apparently you could use the ReSharper OpenAPI to create the functionality you want; unfortunately, I haven't had any experience in using it so I'm not much help there.
Some links of interest...
ReSharper OpenAPI Developer Community
ReSharper public API and sample source code (aka. ReSharper PowerToys)
I think you want the functionality provided by fxCop. I am not aware of Resharper functioning outside of Visual Studio.
Looks like they're listening! First version available as a 30-day demo now: http://blogs.jetbrains.com/dotnet/2013/03/resharper-code-analysis-goes-beyond-visual-studio/
If you're looking for compliance of code to standards, take a look at StyleCop. You can tie it into msbuild and run the rules outside of the IDE.
No, it can not be run from commandline. I still hope that they add this feature since I requested it last october :)