I am using Visual Studio 2015 with ReSharper 10 to edit XAML files.
IntelliSense in enabled in the XAML editor if the Build Action of the XAML file is set to Page, i.e. it gets compiled into the assembly as a BAML2006 resource. I would like to edit XAML file with the Content Build Action instead, because I would like to use XAML 2009 language features and copy the XAMl file into the output directory. Unfortunately, setting Copy If Newer with the Page build action does not result in the XAML file getting copied into the output.
If I set the Build Action to Content, I lose IntelliSense editor support. There still appears to be some kind of syntax and semantic checking, since I get warnings for misspelled tag and attribute names and XAML 2009 features. Is there any way to restore full IntelliSense support?
Xamarin Forms appears to have released an extension related to XAML IntelliSense support: http://www.cazzulino.com/enable-xaml-forms-intellisense.html However, it only seems to enable the XAML editor for Forms resources instead of the XML editor. As I can open files in the XAML editor already, I don't think a similar approach could help me.
I have VS2015 and Resharper10 to and IntelliSense on XAML is working. In my case the BuildAction is AndroidResource.
To make it work tried this document but in the path mentioned there did not have the schemas
https://kb.xamarin.com/customer/portal/articles/1920119-how-do-i-enable-intellisense-in-android-axml-files-
Where I found the schemas is:
C:\Program Files (x86)\Xamarin
Studio\AddIns\MonoDevelop.MonoDroid\schemas
Then opened an .axml file in Source mode and in VS main menu:
XML -> Schemas -> Add dialog.
Related
Subject says it all. This is I think what I'm looking for:
EF 6.x EntityObject Generator for VB.NET
but it will not install (apparently since it does not explicitly support VS 2019) - but perhaps there's a way to hack it into installing?
Rename VSIX to zip
Unpack it, go to T\Data\
Copy EntityObjectVB_EF6.zip to %USERPROFILE%\Documents\Visual Studio 2019\Templates\ItemTemplates\Visual Basic\
more info about templates User templates
User templates
If you add a compressed (.zip) file that includes a
.vstemplate file to the user template directory, the template appears
in the new project and new item dialog boxes. By default, user
templates are located in:
%USERPROFILE%\Documents\Visual Studio 2019\Templates\ProjectTemplates
%USERPROFILE%\Documents\Visual Studio 2019\Templates\ItemTemplates
For example, the following directory has user project templates for
C#:
C:\Users\UserName\Documents\Visual Studio 2019\Templates\ProjectTemplates\Visual C#
I primarily use JetBrains Rider, which appears to lack the option to add a manifest (though my installation of Visual Studio mysteriously lacks "Application Manifest" under the "Add Item" menu anyhow).
So, I created app.manifest and filled it with the desired XML (in my case, it's a vanilla manifest with the classic <requestedExecutionLevel level="requireAdministrator" uiAccess="false"/>)... but it didn't work.
I Changed Build Action to EmbeddedResource... but it still didn't work.
I renamed the file to sandbox.exe.manifest... still nothing!
If I open the exe in a text editor, I see two manifests - mine, and the default.
What step am I missing?
You have to specify manifest file name in the project file. Open corresponding csproj file (Solution Explorer -> select your project -> F4 \ Edit sources) and add the next line to the global properties group :
<ApplicationManifest>app.manifest</ApplicationManifest>
For more information you can read this question:
How can I embed an configuration-specific manifest file in my c# app?
I searched about vjproj and sln files in general on this website.
I understand why they exist.
However, my question is, when I open those files in sublime text, I see the xml or something else clearly (or anything they are supposed to show). But when I double click them, they just lead to usual visual studio environment. And I don't understand why executing those two files make visual studio open even though they are supposed to be markup languages?
Thank you!
OS only care about the file's extension to pick which application responsible for handling that file. In most case, .vbproj and .sln are associated with Visual Studio application no matter the file's content. To test this behavior, try to rename the file's extension to .xml and it will be treated as XML file.
I have written a small VB.NET simulation program that uses an XML file to configure the simulation. I want to include this file in the project build so that when the application is installed, there will be a default XML file in the required directory.
When I do the Project Publish (within VB 2010 Express), there is no option for including any extra data files in the process.
Is it possible to do this with VB 2010 Express ... or should I try some other project builder/installer.
Any pointers will be very much appreciated,
Regards,
Oliver
The option isn’t found in the publisher, it’s a property of the file itself: when you add a file to the project you can set its file properties in the property window (usually at the right-hand side of the screen, below the file browser).
There you can set its “Build Action” to “Content” and its “Copy to Output Directory” mode to “Copy if newer”.
I'm trying to set up logging with Microsoft's Enterprise Library (log4net seems to be a dead project). I'm using VB .NET 2008 and VS 2008. I've searched all over the MSDN documentation, CodePlex docs (including the Hands-On labs that installed and then vanished), and online tutorials to no avail.
They all refer to a mysterious "configuration file" or "App.config" that I can't find and can't seem to add. I even tried adding a new text file and renaming it "App.config" but that only made VS 2008 spit out a red wavy line on a blank file.
Any suggestions for finding the elusive app.config would be greatly appreciated.
(and, if that makes the EntLib configuration tool show up, I'll be absolutely delighted)
Edit:
I've been tricked!
The tree in VS 2008 isn't a true superset-subset relationship, which is why I got so frustrated.
To wit, the top of the tree:
alt text http://static.zooomr.com/images/7954203_910064e809.jpg
And a 'sub-section' of the tree.
alt text http://static.zooomr.com/images/7954204_69e03c8502.jpg
Im pretty sure you can use web.config if youre in a web app or web solution.
Otherwise, see here
[EDIT] In my VS the app file can be added like:
Add new item -> General -> Application Configuration file
Should be in the same directory as binaries, but you have to add it to your solution first, using Visual Studio window for adding new files to soultion.
Add -> New Item -> Application configuration file
You can add an app config file to any vb project by
right clicking on the project -> Add-> New Item -> ...
and selecting either
Application Configuration File
or selecting
Web Configuration File
(for app.config or web.config respectively)
Wanted to add my $0.02 as I stumbled on this question with frustrated googling, and my situation wasn't as others have described here. I created a new winforms project, didn't see app.config, and went to add it as others have described. Wasn't in the list. I turned on "Show all files" in Solution Explorer, and it was already there, but not a part of the project. Right clicked on it and selected "Include in project," and now I'm good to go. No idea why it created the file, but didn't include it in the project. (This is VS2010, btw.)