Visual studio feeds

All Visual Studio blogs in one place

Subscribe

Enter your email address:

Delivered by FeedBurner

Increase your website traffic with Attracta.com

Google+

Contact

Email:
Subject:
Message:
Anti-spam: How many eyes has a typical person?

Follow us on FB

Search

PowerShell 5.0 - Whats new for the DSC guy - Part 1

AddThis Social Bookmark Button
PowerShell 5.0 now allows creation of class based DSC resources so that can now define the schema and implementation in the resource itself. This makes it easier to create custom resources because there is no more need for a MOF file or a specific folder structure for DSC resources as compared to the one in PowerShell 4.0.

With the class resources, the Test-TargetResource, Set-TargetResource and Get-TargetResource functions in the module file is replaced by a Test(), Set() and Get() methods. That’s all for the introduction part now. Let’s look into the example and create a custom resource to manage
SharePoint managed accounts using DSC.

$psModulePath = "C:\Program Files\WindowsPowerShell\Modules"

#Create a folder in the module path for the xSPManagedAccount
New-Item -ItemTypeDirectory -Path"$psModulePath\xSPManagedAccount"

#Create a module manifest for the DSC resource
New-ModuleManifest  -Path "$psModulePath\xSPManagedAccount\xSPManagedAccount.psd1" `
                    -Author"Prajeesh Prathap" `
                    -CompanyName"Prowareness" `
                    -Guid([System.Guid]::NewGuid()) `
                    -RootModule"xSPManagedAccount.psm1" `
                    -Description"DSC resource provider for managing SharePoint managed accounts" `
                    -PowerShellVersion5.0 `
                    -DscResourcesToExport@('SPManagedAccount') `
                    -ModuleVersion1.0 `
                    -Copyright'(c) 2015 Prajeesh Prathap. All rights reserved'

PSEDIT "$psModulePath\xSPManagedAccount\xSPManagedAccount.psd1"

#Create the module file
New-Item -ItemTypeFile -Path"$psModulePath\xSPManagedAccount\xSPManagedAccount.psm1"

PSEDIT "$psModulePath\xSPManagedAccount\xSPManagedAccount.psm1"

The above script will create the files in the PSModulePath location and open in the ISE for adding the methods to the resource file.
In the xSPManagedAccount.psm1...(Read whole news on source site)

Windows Live Writer Tricks

AddThis Social Bookmark Button
As many others, I use Windows Live Writer (WLW) as my main tool for blogging. It has aged a bit over the years and sometimes crashes, but I think it is still the best tool around for this purpose. It will only get better if Scott Hanselman (@shanselman) succeeds in releasing it as open source! I would like to share with you some of my favorite tips for getting the best out of it. Change default style and template:
Navigate to %ProgramFiles(x86)%\Windows Live\Writer\template and change the files defaultstyle.css and default.htm. New posts will inherit
these.
Change IE version used for rendering posts:
Set the desired Internet Explorer version through the Registry: go to HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION and add key WindowsLiveWriter.exe with a value of (DWORD) 10000 (for IE10) or 11000 (IE11). Now you can preview HTML5 features right on WLW.
Change posts location:
This is useful if you use several machines and you want to keep all your posts (drafts, published) in the cloud (OneDrive, DropBox, Google Drive, etc). In Registry, go to HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows Live\Writer and add key Posts Directory. The value must be a full path!
Export settings:
Export all WLW settings by exporting...(Read whole news on source site)

The Morning Brew #1872

AddThis Social Bookmark Button
Software Windows 10 release date announced for July 29th – Andrew Robertson highlights the news that Windows 10 will be released on July 29th Information Merge Headache – Don’t Re-Purposes a class, create a new one – Derik Whittaker discusses merging of code, and some of the things that make merging more difficult Writing code […]

TWC9: We're back.... Windows 10, IoT, Thing Explainer, Ask Anders Anything and more... | This Week On Channel 9 | Channel 9

AddThis Social Bookmark Button

Tools for Apache Cordova – Samples and Docs

AddThis Social Bookmark Button
Open source code is the norm for so many developers these days, and unsurprisingly, so is open documentation. From Azure to TypeScript, public repositories have become a go-to place for sharing samples, tutorials, and “tips and tricks” so that everyone can learn and contribute together as a community. So beginning today, we’re joining the party, starting with our Cordova docs. You can find Cordova samples and tutorials and “tips and tricks” in our GitHub repo. These assets won’t replace the Cordova documentation already found on MSDN. Instead, they’ll complement our existing docs by providing a
venue where everyone can contribute, comment and learn. In this post, I’ll talk a bit about what you can expect and how you can contribute. Cordova Samples At the root of our Cordova samples repository, you will find things that are common to all samples (such as license, readme, and contribution information). Each of the sample apps are isolated in a sub-directory from the repository root. Once you open a sample app folder, you see similar directory structure as follows: The readme file contains important information on what the app implements, how it goes about doing that, and the dependencies --...(Read whole news on source site)

Home