Where can I define Conditional compilation constants for Delphi Prism? - asp.net

I've just ported a Web service from Delphi.NET 2006 to Delphi Prism 2009 (running in the Visual Studio 2008 IDE). But I can't find where I'm supposed to set (or unset) the conditional compilation constants!
Am I blind, has this option been left out, or is it just not supported in VS?
[edit: thanks to Mohammed Nasman for the link] MSDN tells me to set them using the Project Designer. First, it took me a while to figure out that the Project menu is only visible when the Solution is selected (and not the web service project). Then, there's still no way to set conditional compilation constants in the Project Designer!
I just can't find a way to get to the Project Options in an ASP.NET project... Is it really not possible?

Delphi Prism uses VS How to: Declare Conditional Compilation Constants
And for Asp.net Conditional Compilation Constants and ASP.NET

If you right click on a project node (any project, not just Delphi Prism) in the solution explorer and then click on the Properties option in the context menu the project options tab-book should appear in the text editor pane. Click on the build tab, it should be the third tab down on the left hand side. The first text-box that appears on that page should be labelled "Conditional Compilation Symbols". It should already contain the symbols: "DEBUG;TRACE". You can add your own symbols there.
You can also get to the project properties tab-book by selecting the project node in the solution explorer and then clicking on the top-left hand toolbar button in solution explorer window.

Related

Need to write Extension for Code Maps of a solution

I want to write an extension on dgml file. Code map of Solution in visual studio.
How do I plug-in my code on a context menu of links shown in the diagram
I'm uncertain if there are any extensibility points build into the dgml editor, but you can certainly add menu items to the "Architecture" drop down menu item with a VS extension built with the Visual Studio SDK.
You'll want to read up on developing Visual Studio extensions, so that you are familiar with how menu items (also referred to as commands) are added to the VS IDE. Also, there are two categories of windows you can display in Visual Studio. Tool Windows, and Document Winodws. You'll need to figure out which type fits your particular requirements. Generally speaking if your underlying data is stored in a file, you'll most likely want to implement a document window (also known as a custom editor or designer). For example, the window displayed after selecting "Generate Code Map for solution" is a custom designer for .DGML files.
Below are a few links to get you pointed in the right direction.
Visual Studio SDK
Create an extension with a menu command
Create an extension with a tool window
Walkthrough: Create a custom editor
VSSDK Extensibility Samples (github)
Sincerely,

Sitecore 7.1 Grid Designer and adding a control

I am new to Sitecore and have questions. I have installed Sitecore version 7.1 several times just for the fun of it, sweet. Now, I am attempting to follow a tutorial of “Building A Very Simple Website”
http://sdn.sitecore.net/upload/sdn5/developer/training%20materials/basic%20site/selfstudyguide-buildingaverysimplewebsite_usletter.pdf
This tutorial is targeted for Sitecore CMS 6.2, so I want to confirm if it’s still accurate.
The instructions for creating a Generic sublayout display file says I should be able to access the Grid Designer and insert a control while in the Content Editor. I am not seeing any option for this. The only way for me to access the Grid Designer, is by selecting /Development Tools/Development Center. And when I do this I can insert a control but it’s not saving any of my changes.
As anybody had this problem?
Is that tutorial still valid?
I had this same question. I'm running sitecore 7.1 but am following an outdated self study guide for sitecore 6.2. I was able to resolve doing the following.
From the Desktop interface, open the start menu
Open Development Center (Listed under Development Tools)
Select 'Create New Sublayout'
Once created the options you seek will be available
This is the start page for the Developer Center
This will open automatically when you finish the Sublayout creation wizard
The grid designer is still there. It relates to Sublayouts, so if you go to /sitecore/layout/Sublayouts and select one of the sublayout items, you should then see the grid designer tab:
Towards the top right of the screen you should see some tabs for dislaying layout and format options:
To be honest, you'll rarely (if ever) use the grid designer again after this tutorial, so don't worry to much.
I had same problem with Sitecore 8 and solved it creating Sub Layout,going though development center as shown above by #Tyshun. Else
Go direct to development Center using url http://{{Your Site Name}}/sitecore/shell/default.aspx?xmlcontrol=IDE.
You will get option to create SubLayout and then you will get grid view design option.

Using asp.net 2.0 book with Visual Studio 2010 Master Page ContentPlaceHolder + Tables

I'm currently working at an internship and having no real background experience in programming, they give me a 24-hour book about asp.net 2.0 VB but I'm using Visual Studio 2010 instead of 2005. Plus, the book is using more of the Design view more than the source view. I'm at the Master Page chapter and it's telling me to use tables as site-wide templates. Here's the problem:
It's telling me to go to the layout menu (which doesn't exist or I can't find it). So I find a table menu instead, so I go into insert tables. The book says there should be a template drop down menu with a header, footer, and side. There isn't one and I can't find it anywhere else.
The question: Is it still available in 2010 or is there something else in its place that i should use?
Layout menu is no more there since VS2005
In Visual Studio 2010 on Design View (The bottom "Design" button should be enabled) go to the main upper menu and choose:
Tools - Options - CSS Styling and Check the option
"Change position to absolute for controls added using Toolbox,paste or drag and drop"
However I don't recommend this because in my experience is not browser compatible sometimes so you should permanently check how your page looks in different browsers as you go forward in your layout.
You can try to create your tables manually (with the menu you just found) instead and use their css properties to align the text/images inside each row and cell as you wish. This can help to walk you through the process:
http://social.msdn.microsoft.com/Forums/is/csharpgeneral/thread/7db5a810-e9e0-42eb-8ebc-a4c28036effc
http://forums.asp.net/t/1599099.aspx/1
http://technet.microsoft.com/en-us/subscriptions/downloads/dyxa0hhe.aspx
Hope this helps.

CodeRush Templates and Intellisense

I am creating custom code snippet templates using DevExpress' CodeRush.
Is there anyway for me to be able to see available Templates through Intellisense so I don't have to memorize the names of all of the templates that I want to create?
You can use the CodeRush Training tool window for this purpose. Just dock it to the appropriate position (e.g. to the left side of the Visual Studio IDE) and see what code snippet templates it suggests. The window is context sensitive, so only appropriate code templates suggestions are made. I assume that after some time you will remember all useful templates you will work with.
What I ended up doing was I created visual studio snippets with the same name as the CodeRush templates in question. This allowed me to have the intellisense popup when I started to type the name of the template (b/c Visual Studio thought I was using a snippet) and then I can just hit the hotkey to use the CodeRush template.

Flex Builder 3 design view, css not being applied

I have Flex Builder 3 installed on two Windows machines and the same project on both of them. On one computer, the CSS styles I defined are shown in design view; on the other computer they are not applied. Is there any reason why it might not work on one?
Have you checked the preferences under Flex/Editors/Design Mode? That has a skin rendering option, could that be it?
Sometimes when I first switch to design view the CSS is not applied until I hit the refresh button.
The compiler probably uses by default the "Use the server's SDK" (Coldfusion??)
Right click the Project and select "Properties", select "Flex Compiler" and then select the correct SDK version. It has to be 3.x to be able to use the design view for CSS files.

Resources