Bernhard Millauer

Bernhard Millauer

(6 comments, 20 posts)

This user hasn't shared any profile information

Home page: http://root-project.org

Posts by Bernhard Millauer

Automated Web Deployment with MSBuild and MSDeploy

0

If you are looking for an automated web deployment process you will inevitably come to MSBuild.
There are many tutorials out there how to set up a command line call for MSBuild but you wont find a documentation how to publish a generated package with MSDeploy.

But this is especially needed is you want to use “-setParam” for a tokenized (transformed) web.config file and wont / can’t change the SetParameter.xml!
(The names of the parameters for -setParam can be found in the SetParameter.xml file in the same directory as the Package.zip. They are also act as default values if not set in the command line call. )

So I wrote this quick tutorial how to get command line call for MSDeploy.
(Please consider that the paths you will later use are absolute / relative to the working directory.)

 

Step 1: Get the publish ready with MSBuild

Before we will get some further results please get your deployment call working.

msbuild.exe
SomeWebProject.csproj
/P:Configuration=Release
/P:DeployOnBuild=True
/P:DeployTarget=MSDeployPublish
/P:MsDeployServiceUrl=https://TargetServer/MsDeploy.axd
/P:AllowUntrustedCertificate=True
/P:MSDeployPublishMethod=WMSvc
/P:CreatePackageOnPublish=True
/P:UserName=Username
/P:Password=Password
/P:DeployIisAppPath=TargetWebSite/TargetWebApp

Configuration: This is the configuration you will use eg. Debug, Release or a custom one
AllowUntrustedCertificate: You will need this if you do not have a valid certificate on the server
DeployIisAppPath: The name of the target website eg. “Default Web Site/MyWebApp”
TargetWebSite/TargetWebApp: Please consider the different usages below!

 

Step 2: Get the command line for MSDeploy

Append the parameter “/P:UseMsdeployExe=True” to the msbuild.exe call. If you do so, you will see the call in the console like this:

MSDeployPublish:
Start Web Deploy Publish the Application/package to https:/TargetServer/MsDeploy.axd?site=TargetWebSite
Running msdeploy.exe.
msdeploy.exe -source:package=’C:\SomeWebProject\obj\Release\Package\SomeWebProject.zip‘ -dest:auto,ComputerName=’https://TargetServer:8172/MsDeploy.axd?site=TargetWebSite‘,UserName=’Username‘,Password=’Password‘,IncludeAcls=’False’,AuthType=’Basic’ -verb:sync -disableLink:AppPoolExtension -disableLink:ContentExtension -disableLink:CertificateExtension -allowUntrusted -retryAttempts=2

Gotcha! This is the important MSDeploy command line call.

 

Step 3: Get the two things together

now we can split the automatic deployment of MSBuild into 1. create only the package with MSBuild and 2. only deploy with MSDeploy.

msbuild.exe
SomeWebProject.csproj
/P:Configuration=Release
/P:DeployOnBuild=True
/P:CreatePackageOnPublish=True

msdeploy.exe
-source:package=’C:\SomeWebProject\obj\Release\Package\SomeWebProject.zip
-dest:auto,ComputerName=’https://TargetServer:8172/MsDeploy.axd?site=TargetWebSite‘,UserName=’Username‘,Password=’Password‘,IncludeAcls=’False’,AuthType=’Basic’
-verb:sync
-disableLink:AppPoolExtension
-disableLink:ContentExtension
-disableLink:CertificateExtension
-allowUntrusted
-retryAttempts=2
-setParam:’IIS Web Application Name’=’TargetWebSite/TargetWebApp

 

Have a nice day.

Screenshot-2011-08-20_07.37.38

Sculpt-Brush Tips

2

With Blender 2.59 we got a very new and stable version to play with.

While exploring the new features i found two new functions!

(more…)

icon_2d

2D Tracking with RotoBezier

0

This was entirely done with Blender 3D.

Addons:
.) 2D Tracking (Tomato Branch)
.) RotoBezier

The free Footage comes from hollywoodcamerawork.us

The whole process lasts ~4 hours:
(30 min 2d tracking, 15 min compositing, the remaining time: first time ever roto scoping^^)
for the first time i think i was realy fast :)

i can provide the .blend file if someone want it.

360 Camera

360° Camera

2

I was looking for a 360 camera attachment and found one, but it is very expensive to ship outside from the US, so i decide to create my own… in blender :)

The .blend file can be downloaded here.

 

chadreau_small

Hanging Objects Effect

0

Do you want to archive an effect like this? You found the solution.

You can follow the full guide or skip the optional steps.

(more…)

render_restult

360° Panorama Rendering

7

I was searching for a way to create a panorama shot but just found some wired information’s about PartX properties.
Then i came to a post where it was described how it works with blender 2.5.

Update: Thanks to Artorp to helping me to understand my mistake – it is NOT a 360° render because blender cannot do this.
But now i have more accurate settings for a better render this way.

The setup is now fairly easy:

  • place the camera with horizontal alignment between the objects
  • set the focal length to 5.050mm
  • enable the panorama option


Next we have to setup the render options:

  • In the performance tab extend the Tiles X and Y to 360 and 180.
    (This will increase the render time but reduces the count of artifacts)

With these settings, you get a result like this:


Happy blending :)

A dull Car Tire

0

I’ve done a new render, a car tire.
I know, this is dull but i have to :)


please critique it, i have to know the truth

shapeways

Export Blender Models to Shapeways

0

Here is the way how i get my model compatible for ShapeWays.
Please check the FAQ and other pages on ShapeWays if you have questions that are not fit into this todo.

here is the list:

  • create your 3d model
  • convert all curves to meshes and apply all modifiers
  • join all parts of the model together into a single mesh
  • check that the model do not have any floating parts if you do not want them
  • check the model for “non manifold” parts (edit mode – deselect all -> select -> non manifold) => tutorial
  • * unwrap the model
  • * put the texture on the same directory level as the blend file
  • * set the texture to the model
  • enable units under scene -> units in Blender
  • set the dimensions of your model with the help of the units (eg. 12cm)
  • IMPORTANT: apply the scale to the model (ctrl-a -> scale)
  • export to collada (*.dae)
  • open the exported model with MeshLab (free)
  • save the model without any modifications as VRML (*.wrl) file
  • * pack the VRML file and the texture (same directory level!) into a zip file and upload it to ShapeWays
  • -or- upload only the VRML file to ShapeWays
  • check your email inbox for error / success messages

* = for colored print

i hope i could help!

Determine ClickOnce UpdateUri / Install Address

0

Its hard to find Informations about the place where the UpdateUri is saved on a windows machine.
The only information i was found is where the binaries of a ClickOnce application is stored.

This whould be:
C:\Users\UserName\AppData\Local\Apps\2.0\ (Vista)
C:\Documents and Settings\UserName\Local Settings\Apps\2.0\ (XP)

The UpdateUri of a particular application can be found in the registry:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Uninstall\[APP-ID]\UrlUpdateInfo

The key will contain a string like this:
http://somedomain.com/ApplicationName/ApplicationName.application

If this address is called in the browser (InternetExplorer or Firefox with AddOn), the application starts to install.

If you change the ApplicationName.application to publish.htm, a install page will be displayed.

Bernhard Millauer's RSS Feed
Go to Top